Skip to content

Commit

Permalink
test(Editable): update enter submit props because we have blur by…
Browse files Browse the repository at this point in the history
… default
  • Loading branch information
hrynevychroman committed Jan 18, 2025
1 parent 805ce2b commit 0faa548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/radix-vue/src/Editable/Editable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('editable', () => {
})

it('submits the value when pressing enter', async () => {
const { input, preview, rerender } = setup({ editableProps: { modelValue: '' }, emits: { 'onUpdate:modelValue': (data: string) => rerender({ modelValue: data }) } })
const { input, preview, rerender } = setup({ editableProps: { modelValue: '', submitMode: 'enter' }, emits: { 'onUpdate:modelValue': (data: string) => rerender({ modelValue: data }) } })

await userEvent.type(input, 'New Value')
await userEvent.keyboard(kbd.ENTER)
Expand Down

0 comments on commit 0faa548

Please sign in to comment.