Skip to content

Commit

Permalink
Fix event handling when input name='nodeName'
Browse files Browse the repository at this point in the history
  • Loading branch information
jimfb authored and jim committed Mar 21, 2016
1 parent 40c4635 commit f318a39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderers/dom/client/eventPlugins/ChangeEventPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ var activeElementValueProp = null;
* SECTION: handle `change` event
*/
function shouldUseChangeEvent(elem) {
var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
var nodeName = elem.nodeName;
if(typeof nodeName !== 'string') return false; // Issue #6284
nodeName = nodeName.toLowerCase();
return (
nodeName === 'select' ||
(nodeName === 'input' && elem.type === 'file')
Expand Down

0 comments on commit f318a39

Please sign in to comment.