fix(settings): close dropdown after choosing icon
This commit is contained in:
parent
ddb6e90e21
commit
5dffd380b0
2 changed files with 14 additions and 3 deletions
|
@ -7,8 +7,13 @@ defineProps<{
|
|||
const dropdown = $ref<any>()
|
||||
const colorMode = useColorMode()
|
||||
|
||||
const hide = () => dropdown.hide()
|
||||
provide(dropdownContextKey, {
|
||||
hide: () => dropdown.hide(),
|
||||
hide,
|
||||
})
|
||||
|
||||
defineExpose({
|
||||
hide,
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue