-
Notifications
You must be signed in to change notification settings - Fork 6
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update labelled to v2.11.0 #216
Conversation
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.
2 minor things ...
addon/components/polaris-labelled.js
Outdated
* @private | ||
*/ | ||
shouldRenderError: computed('error', function() { | ||
let { error } = this; |
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 we still want to use Ember getters to support older versions of Ember.....from what I remember I run into issues trying to do this before
@@ -20,12 +20,9 @@ | |||
|
|||
{{yield}} | |||
|
|||
{{#if error}} | |||
{{#if shouldRenderError}} | |||
<div id={{errorId}} class="Polaris-Labelled__Error"> |
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.
id={{errorId}}
seems no longer needed here
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.
Good catch, thanks!
Closes #215
I didn't update to use
ember-test-selectors
here simply because the existing tests are just straight ports of the React implementation's tests. Let me know if you guys feel like we should make that update anyway and I'll do it 馃憤