File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ const container = ref()
126126const query = ref (' ' )
127127const inputRef = ref ()
128128const comboboxButton = ref ()
129- const optionsPanelWidth = computed (() => comboboxButton .value ?.el .offsetWidth )
129+ const optionsPanelWidth = computed (() => comboboxButton .value ?.el ? .offsetWidth )
130130
131131const selectInputValue = () => {
132132 if (inputRef .value ) {
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ const emit = defineEmits<{
8282const attrs = useAttrs ()
8383
8484const listboxButton = ref ()
85- const optionsPanelWidth = computed (() => listboxButton .value ?.el .offsetWidth )
85+ const optionsPanelWidth = computed (() => listboxButton .value ?.el ? .offsetWidth )
8686
8787// hack together a tab-out behavior for the listbox
8888const handleTab = (event : KeyboardEvent ) => {
You can’t perform that action at this time.
0 commit comments