File tree 2 files changed +10
-1
lines changed
packages/boxel-ui/addon/src/components/select
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const BoxelSelect: TemplateOnlyComponent<Signature> = <template>
33
33
@ dropdownClass ={{cn ' boxel-select__dropdown' @ dropdownClass}}
34
34
@ triggerComponent ={{@ triggerComponent }}
35
35
@ disabled ={{@ disabled }}
36
- @ matchTriggerWidth ={{ false }}
36
+ @ matchTriggerWidth ={{@ matchTriggerWidth }}
37
37
@ eventType =' click'
38
38
@ searchEnabled ={{@ searchEnabled }}
39
39
@ beforeOptionsComponent ={{component BeforeOptions autofocus =false }}
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export default class BoxelSelectUsage extends Component {
33
33
@tracked disabled = false ;
34
34
@tracked searchField = ' ' ;
35
35
@tracked searchEnabled = false ;
36
+ @tracked matchTriggerWidth = true ;
36
37
37
38
@cssVariable ({ cssClassName: ' boxel-select__dropdown' })
38
39
declare boxelSelectCurrentColor: CSSVariableInfo ;
@@ -66,6 +67,7 @@ export default class BoxelSelectUsage extends Component {
66
67
@ renderInPlace ={{this .renderInPlace }}
67
68
@ disabled ={{this .disabled }}
68
69
@ dropdownClass =' boxel-select-usage'
70
+ @ matchTriggerWidth ={{this .matchTriggerWidth }}
69
71
aria-label ={{this .placeholder }}
70
72
as | item |
71
73
>
@@ -116,6 +118,13 @@ export default class BoxelSelectUsage extends Component {
116
118
@ onInput ={{fn ( mut this . renderInPlace) }}
117
119
@ description =' When passed true, the content will render next to the trigger instead of being placed in the root of the body'
118
120
/>
121
+ <Args.Bool
122
+ @ name =' matchTriggerWidth'
123
+ @ defaultValue ={{ true }}
124
+ @ value ={{this .matchTriggerWidth }}
125
+ @ onInput ={{fn ( mut this . matchTriggerWidth) }}
126
+ @ description =' Allow dropdown width to match trigger width'
127
+ />
119
128
<Args.Bool
120
129
@ name =' disabled'
121
130
@ defaultValue ={{ false }}
You can’t perform that action at this time.
0 commit comments