Skip to content

Add warnings on incorrect casing of event handler properties #3548

Description

@felixgirault

Hi,

React currently warns about incorrect casing of properties like tabIndex.
However, it doesn't warn about this problem on event handlers, like onKeyDown.

Being used to the "html way" of writing those attributes, I often wrote something like onKeydown. Sadly, attached event handlers were not called, but I didn't get any warning from React, and it took me quite some time to find my mistake.

You can see an example here: http://jsfiddle.net/oj5eec84/.
Just focus on an element, and try to press a key.

Activity

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