Skip to content
New issue

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

Fix shallowwrapper not calling events with lowercase names #135

Merged
merged 1 commit into from
Jan 24, 2016

Conversation

benstokoe
Copy link
Contributor

When using the ShallowHelper you could not use lowercase event names such as keydown. This is because the propsFromEvent function is expecting the camelcased version.
To fix run the event through mapToNativeEventNames.

@lelandrichardson
Copy link
Collaborator

awesome! Thank for helping out.

@ljharb
Copy link
Member

ljharb commented Jan 24, 2016

LGTM, thanks!

lelandrichardson added a commit that referenced this pull request Jan 24, 2016
Fix shallowwrapper not calling events with lowercase names
@lelandrichardson lelandrichardson merged commit ca1fec4 into enzymejs:master Jan 24, 2016
@ljharb ljharb added the bug label Jan 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants