-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(InputMenu): emit
focus
event (#2386)
Co-authored-by: Benjamin Canac <[email protected]>
- Loading branch information
1 parent
f59844b
commit 7802aac
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
docs/app/components/content/examples/input-menu/InputMenuOpenFocusExample.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script setup lang="ts"> | ||
const open = ref(false) | ||
const items = ref(['Backlog', 'Todo', 'In Progress', 'Done']) | ||
const selected = ref('Backlog') | ||
</script> | ||
|
||
<template> | ||
<UInputMenu | ||
v-model="selected" | ||
v-model:open="open" | ||
:items="items" | ||
@focus="open = true" | ||
/> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters