Skip to content

Commit

Permalink
show icon if not disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tintinthong committed Jan 11, 2025
1 parent 45f353f commit 58c3f99
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/boxel-ui/addon/src/components/select/trigger.gts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Select } from 'ember-power-select/components/power-select';

import { cn } from '../../helpers.ts';
import CaretDown from '../../icons/caret-down.gts';
import { not } from '../../helpers/truth-helpers.ts';

export interface TriggerSignature {
Args: {
Expand Down Expand Up @@ -40,9 +41,11 @@ export class BoxelTriggerWrapper extends Component<TriggerSignature> {
{{yield @select.selected @select}}
{{/if}}
</div>
{{#if (not @select.disabled)}}

{{#if (has-block 'icon')}}
{{yield to='icon'}}
{{#if (has-block 'icon')}}
{{yield to='icon'}}
{{/if}}
{{/if}}
</div>
<style scoped>
Expand Down

0 comments on commit 58c3f99

Please sign in to comment.