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 123810e
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 123810e

Please sign in to comment.