Skip to content

Commit

Permalink
don't render two placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
lazybensch committed Feb 15, 2017
1 parent fcfc309 commit 6e5129f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion addon/components/power-select-multiple/trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ export default Component.extend({
}),

maybePlaceholder: computed('placeholder', 'select.selected.length', function() {
if (isIE) {
const component = this.get('placeholderComponent');
const hasCustomPlaceholder = component !== 'power-select/placeholder';

if (isIE || hasCustomPlaceholder) {
return null;
}
let select = this.get('select');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{{/if}}
</li>
{{else}}
{{#if placeholder}}
{{#if (not-eq placeholder maybePlaceholder)}}
{{component placeholderComponent placeholder=placeholder}}
{{/if}}
{{/each}}
Expand Down

0 comments on commit 6e5129f

Please sign in to comment.