Skip to content

Commit 2b10954

Browse files
committed
fix nullable prop for Vue
1 parent 0c34fe8 commit 2b10954

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@headlessui-vue/src/components/combobox/combobox.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3476,7 +3476,7 @@ describe('Keyboard interactions', () => {
34763476
let handleChange = jest.fn()
34773477
renderTemplate({
34783478
template: html`
3479-
<Combobox v-model="value">
3479+
<Combobox v-model="value" nullable>
34803480
<ComboboxInput />
34813481
<ComboboxButton>Trigger</ComboboxButton>
34823482
<ComboboxOptions>

packages/@headlessui-vue/src/components/combobox/combobox.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ export let ComboboxInput = defineComponent({
627627
case Keys.Backspace:
628628
case Keys.Delete:
629629
if (api.mode.value !== ValueMode.Single) return
630-
if (!api.nullable) return
630+
if (!api.nullable.value) return
631631

632632
let input = event.currentTarget as HTMLInputElement
633633
requestAnimationFrame(() => {

0 commit comments

Comments
 (0)