We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code doesn't work in IE:
var code = event.key || event.keyCode; if ((event.code === 'Escape' || code === 'Escape' || code === 27) && _this.props.onEscapeKey) { _this.props.onEscapeKey(event); }
it should be:
if ((event.code === 'Escape' || event.key === 'Escape' || event.keyCode === 27) && _this.props.onEscapeKey) { _this.props.onEscapeKey(event); }
IE11 sets event.key to "Esc" so the keyCode is skipped and thereby ignored.
event.key
"Esc"
keyCode
It seems to work correctly in Edge 18.
The text was updated successfully, but these errors were encountered:
Sounds correct 👍
Sorry, something went wrong.
f897bea
v3.0.5
theKashey
No branches or pull requests
The following code doesn't work in IE:
it should be:
IE11 sets
event.key
to"Esc"
so thekeyCode
is skipped and thereby ignored.It seems to work correctly in Edge 18.
The text was updated successfully, but these errors were encountered: