Skip to content

Invalid description for onFocus DOM prop in the reference page #5933

@jitiendran

Description

@jitiendran

The common-props reference page is providing invalid description for onFocus DOM prop

Actual Behaviour:

image

Expected Behaviour:

onFocus method is fired only when the element receives or enters focus not lose focus.

So the description should look like the following

  • onFocus: A FocusEvent handler function. Fires when an element receives focus. Unlike the built-in browser focus event, in React the onFocus event bubbles.

Also I can make the PR for it, if the issue is verified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions