Skip to content

Commit

Permalink
Enable @allowClear on <CountrySelect /> component
Browse files Browse the repository at this point in the history
  • Loading branch information
TemuulenBM committed Nov 10, 2023
1 parent c4c9c18 commit 9c16f5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/components/country-select.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="fleetbase-power-select {{@wrapperClass}}">
<PowerSelect @renderInPlace={{true}} @searchEnabled={{true}} @selected={{this.selected}} @searchField="name" @options={{this.countries}} @onChange={{this.selectCountry}} @triggerClass="form-select form-input {{@triggerClass}}" @dropdownClass={{or @dropdownClass "ember-model-select__dropdown"}} @placeholder={{or @placeholder "Select country..."}} @disabled={{this.isLoading}} ...attributes as |country|>
<PowerSelect @renderInPlace={{true}} @searchEnabled={{true}} @selected={{this.selected}} @searchField="name" @options={{this.countries}} @onChange={{this.selectCountry}} @triggerClass="form-select form-input {{@triggerClass}}" @dropdownClass={{or @dropdownClass "ember-model-select__dropdown"}} @placeholder={{or @placeholder "Select country..."}} @disabled={{this.isLoading}} @allowClear={{@allowClear}} ...attributes as |country|>
<span class="mr-1">{{country.emoji}}</span>
<span>{{country.name}}</span>
</PowerSelect>
Expand Down
2 changes: 1 addition & 1 deletion addon/components/filter/country.hbs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<CountrySelect @value={{this.value}} @onChange={{this.onChange}} />
<CountrySelect @value={{this.value}} @onChange={{this.onChange}} @allowClear={{true}} />

0 comments on commit 9c16f5d

Please sign in to comment.