Skip to content

fix(events): add selection-related properties to target #264

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

Merged

Conversation

diego-codes
Copy link
Contributor

Resolves: #263

What: Fix that ensures that selectionStart and selectionEnd properties are added to event targets.

Why: To fulfill the requirement that any property added to the target object when firing an event is actually added to the object

How: Re-ordering operations in the fire event function

Checklist:

  • Documentation added to the docs site N/A
  • Typescript definitions updated N/A
  • Tests
  • Ready to be merged

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Super. Thanks!

@kentcdodds kentcdodds merged commit 075e682 into testing-library:master May 23, 2019
@kentcdodds
Copy link
Member

@all-contributors please add @diego-codes for code and tests

@allcontributors
Copy link
Contributor

@kentcdodds

I've put up a pull request to add @diego-codes! 🎉

@kentcdodds
Copy link
Member

🎉 This PR is included in version 4.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selection-related target properties not set in fired events
2 participants