Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lazybensch committed Feb 15, 2017
1 parent c021e61 commit 13ad5b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Master
- [ENHANCEMENT] Providing a custom `placeholderComponent` is available for
`power-select-multiple` too now.

# 1.5.0-beta.0
- [ENHANCEMENT/BREAKING-ISH] `ember-basic-dropdown` has improved the experience with A11y
for screen readings. Some `aria-*` have changed and there is an invisible div that wasn't
there before. EPS doens't rely on those attributes and it's unlikely that this will
break for anyone, but just in case I'll bump a minor version number and keep it in
beta for some days.
- [ENHANCEMENT] Providing a custom `placeholderComponent` is available for
`power-select-multiple` too now.

# 1.4.3
- [ENHANCEMENT] `typeInSearch` integration test helper now accepts an options scope to
Expand Down
5 changes: 1 addition & 4 deletions addon/components/power-select-multiple/trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ export default Component.extend({
}),

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

if (isIE || hasCustomPlaceholder) {
if (isIE) {
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 (and placeholder (not searchEnabled))}}
{{#if (not searchEnabled)}}
{{component placeholderComponent placeholder=placeholder}}
{{/if}}
{{/each}}
Expand Down

0 comments on commit 13ad5b5

Please sign in to comment.