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
I wrote this code to extends KeyboardEvent from native API:
class KeyEvent extends KeyboardEvent { }
I use babel to transpile the code to ES5. But after, during executing the code, I get this error:
Uncaught TypeError: Failed to construct 'KeyboardEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
The text was updated successfully, but these errors were encountered:
Show the code you're using to create a KeyEvent please.
KeyEvent
Sorry, something went wrong.
It is just : new KeyEvent();
It'd be because the super class is being called with apply then. I don't think there's a way around this unless you just use native classes.
apply
What's pity.
No branches or pull requests
I wrote this code to extends KeyboardEvent from native API:
I use babel to transpile the code to ES5. But after, during executing the code, I get this error:
The text was updated successfully, but these errors were encountered: