From 58c3f992ff7f509496e386c5772bc66d3951d13a Mon Sep 17 00:00:00 2001 From: tintinthong Date: Sat, 11 Jan 2025 11:32:33 -0500 Subject: [PATCH] show icon if not disabled --- packages/boxel-ui/addon/src/components/select/trigger.gts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/boxel-ui/addon/src/components/select/trigger.gts b/packages/boxel-ui/addon/src/components/select/trigger.gts index 71682ac81b..dc5eb9b1cd 100644 --- a/packages/boxel-ui/addon/src/components/select/trigger.gts +++ b/packages/boxel-ui/addon/src/components/select/trigger.gts @@ -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: { @@ -40,9 +41,11 @@ export class BoxelTriggerWrapper extends Component { {{yield @select.selected @select}} {{/if}} + {{#if (not @select.disabled)}} - {{#if (has-block 'icon')}} - {{yield to='icon'}} + {{#if (has-block 'icon')}} + {{yield to='icon'}} + {{/if}} {{/if}}