-
Notifications
You must be signed in to change notification settings - Fork 472
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: Only return first child element in label query #520
fix: Only return first child element in label query #520
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 7cf5496:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good. I doubt this will impact many people, but I would like to get another review from folks on this before it's merged.
Well that's new:
That's the build failure. I'm going to open a new issue about this. |
Codecov Report
@@ Coverage Diff @@
## master #520 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 23 23
Lines 428 429 +1
Branches 102 103 +1
=====================================
+ Hits 428 429 +1
Continue to review full report at Codecov.
|
We won't be able to get this released until #521 is worked out 😬 |
(Oh, and thanks a lot @airjp73!) |
🎉 This PR is included in version 7.2.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Huh, maybe that was a fluke for the build 🤔 😬 |
Any time! |
Also, I hope it's not rude to ask 🙃-- could I be added to the all-contributors thing? 😊 |
Thank you for asking! I'm normally good at doing that but do miss it occasionally. Will get you added now! |
@all-contributors please add @airjp73 for code and tests |
I've put up a pull request to add @airjp73! 🎉 |
What:
Bug-Fix: Changes the *ByLabelText queries so that, when finding form controls that are children of labels, only the first form control is returned.
Why:
Following up on the discussion in #373 that started with this comment
How:
When finding children of labels, I filtered the children down to only those that matched the selector and grabbed the first one.
Checklist:
docs site N/A
DefinitelyTyped N/A