Skip to content

Commit 7209270

Browse files
committed
Fix paper-select error message
1 parent fd0c148 commit 7209270

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

addon/components/paper-select/component.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class PaperSelect extends Component.extend(ValidationMixin, ChildMixin) {
2828
validationProperty = 'selected';
2929
isTouched = false;
3030
isFocused = false;
31+
hideAllMessages = false;
3132

3233
@and('isInvalid', 'isTouched')
3334
isInvalidAndTouched;

addon/components/paper-select/template.hbs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,15 @@
3232
{{yield opt term}}
3333
</PowerSelect>
3434

35-
</md-input-container>
35+
{{#unless this.hideAllMessages}}
36+
<div class="md-errors-spacer"></div>
37+
38+
{{#if this.isInvalidAndTouched}}
39+
<div class="md-input-messages-animation md-auto-hide">
40+
<div class="paper-input-error ng-enter ng-enter-active md-input-message-animation" style="opacity: 1; margin-top: 0">
41+
{{@errors}}
42+
</div>
43+
</div>
44+
{{/if}}
45+
{{/unless}}
46+
</md-input-container>

0 commit comments

Comments
 (0)