Skip to content

Fix blur handler on IE where menu ref is undefined#661

Merged
JedWatson merged 2 commits intoJedWatson:masterfrom
gaastonsr:fix-ie-blur-2
Dec 15, 2015
Merged

Fix blur handler on IE where menu ref is undefined#661
JedWatson merged 2 commits intoJedWatson:masterfrom
gaastonsr:fix-ie-blur-2

Conversation

@gaastonsr
Copy link

On IE when the input is blurred it fails because on isEqualNode does not accept undefined or null values.

This re-introduces the fix on #539 and checks menuDOM is not undefined/null.

src/Select.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaastonsr findDOMNode is unnecessary in react 0.14 as this.refs.menu is a DOM Node. see https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'll update this and check if I can fix #649.

React 0.14 already returns the DOM node.
@gaastonsr
Copy link
Author

I updated the branch with the fixes pointed out by @cloudkite and verified it fixes #649.

@JedWatson
Copy link
Owner

Thanks @gaastonsr! really appreciate this :)

JedWatson added a commit that referenced this pull request Dec 15, 2015
Fix blur handler on IE where menu ref is undefined
@JedWatson JedWatson merged commit 8c9ce58 into JedWatson:master Dec 15, 2015
@gaastonsr
Copy link
Author

Thank you for merging. :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants