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.
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.