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
Describe the bug When triggering a keydown, I need the code option to be preserved. For now it is overridden with keyCode at
test-utils/src/createDomEvent.ts
Line 113 in e96db6a
To Reproduce await wrapper.find('input').trigger('keydown', { code: 'Space', key: ' ', keyCode: 32, ctrlKey: true })
Expected behavior In event handler: event.code == 'Space'
event.code == 'Space'
I want submit a PR to change line 113 to code: options.code || keyCode,
code: options.code || keyCode,
Would that be valid?
The text was updated successfully, but these errors were encountered:
a521fd6
No branches or pull requests
Describe the bug
When triggering a keydown, I need the code option to be preserved. For now it is overridden with keyCode at
test-utils/src/createDomEvent.ts
Line 113 in e96db6a
To Reproduce
await wrapper.find('input').trigger('keydown', { code: 'Space', key: ' ', keyCode: 32, ctrlKey: true })
Expected behavior
In event handler:
event.code == 'Space'
I want submit a PR to change line 113 to
code: options.code || keyCode,
Would that be valid?
The text was updated successfully, but these errors were encountered: