-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make label tagless to preserve visibility feature
- Loading branch information
1 parent
6b4369c
commit 0b9e39e
Showing
2 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
{{#if this.show}} | ||
{{#if hasBlock}} | ||
{{yield this.label}} | ||
{{else}} | ||
{{this.label}} | ||
{{/if}} | ||
<label | ||
for={{this.for}} | ||
class='toggle-text toggle-prefix {{this.labelType}}' | ||
onclick={{action 'clickLabel'}} | ||
> | ||
{{#if hasBlock}} | ||
{{yield this.label}} | ||
{{else}} | ||
{{this.label}} | ||
{{/if}} | ||
</label> | ||
{{/if}} |
0b9e39e
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.
This is breaking change and should have been released as v7.0.0 - I've hit failures after upgrading because in my app I've done something like with
ember-test-selectors
:0b9e39e
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.
To keep the behaviour for
data-test
selectors, we could probably splat the attributes with...attributes
on the<label>
element itself?0b9e39e
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.
It's a bug and needs a fix. Not meant to be breaking. Will address tomorrow.
0b9e39e
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.
Unless you want to submit a fix today 😉