Skip to content

Commit

Permalink
fix nullable prop for Vue
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Apr 22, 2022
1 parent 0c34fe8 commit 2b10954
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3476,7 +3476,7 @@ describe('Keyboard interactions', () => {
let handleChange = jest.fn()
renderTemplate({
template: html`
<Combobox v-model="value">
<Combobox v-model="value" nullable>
<ComboboxInput />
<ComboboxButton>Trigger</ComboboxButton>
<ComboboxOptions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ export let ComboboxInput = defineComponent({
case Keys.Backspace:
case Keys.Delete:
if (api.mode.value !== ValueMode.Single) return
if (!api.nullable) return
if (!api.nullable.value) return

let input = event.currentTarget as HTMLInputElement
requestAnimationFrame(() => {
Expand Down

0 comments on commit 2b10954

Please sign in to comment.