Skip to content

Please add events onFocusIn & OnFocusOut #5202

Closed

Activity

  1. mxstbr commented on Feb 18, 2016

    @mxstbr
    Contributor

    @jimfb this might be something I could look into! What about adding focusIn and focusOut to the SimpleEventsPlugin next to focus?

  2. jimfb commented on Feb 18, 2016

    @jimfb
    Contributor

    I haven't looked at it, but that sounds reasonable to me.

  3. mxstbr commented on Feb 18, 2016

    @mxstbr
    Contributor

    These two are added for IE support of onFocus and onBlur – should I still add them as seperate events or is it fine as-is? https://github.com/facebook/react/blob/master/src/renderers/dom/client/ReactBrowserEventEmitter.js#L297-L310

  4. jimfb commented on Mar 16, 2016

    @jimfb
    Contributor

    Fixed via #6226

  5. gaearon commented on Mar 16, 2016

    @gaearon
    Collaborator

    As discussed in #6226 and as @mxstbr noted above, adding them explicitly probably wasn’t the right call after all.

    We already support onFocus and onBlur in a cross-browser way, and we should tell people to use them instead. Internally they already use focusin and focusout on IE which implements the bubbling behavior.

    We should probably consider adding a warning that tells you to use onFocus if you attempt to define onFocusIn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions