diff --git a/src/renderers/dom/shared/ReactInputSelection.js b/src/renderers/dom/shared/ReactInputSelection.js index 46e6931a6db71..3229f854006fc 100644 --- a/src/renderers/dom/shared/ReactInputSelection.js +++ b/src/renderers/dom/shared/ReactInputSelection.js @@ -106,8 +106,8 @@ var ReactInputSelection = { }, /** - * @setSelection: Sets the selection bounds of a textarea or input and focuses - * the input. + * @setSelection: Sets the selection bounds of a textarea, input or + * contentEditable node. * -@input Set selection bounds of this input or textarea * -@offsets Object of same form that is returned from get* */ diff --git a/src/renderers/dom/shared/eventPlugins/SelectEventPlugin.js b/src/renderers/dom/shared/eventPlugins/SelectEventPlugin.js index 831391dd448ec..75b182f372a3d 100644 --- a/src/renderers/dom/shared/eventPlugins/SelectEventPlugin.js +++ b/src/renderers/dom/shared/eventPlugins/SelectEventPlugin.js @@ -96,6 +96,7 @@ function getSelection(node) { * Poll selection to see whether it's changed. * * @param {object} nativeEvent + * @param {object} nativeEventTarget * @return {?SyntheticEvent} */ function constructSelectEvent(nativeEvent, nativeEventTarget) {