Update bounding on opening of menu (#3359)
This commit is contained in:
committed by
GitHub
parent
89daf1298e
commit
bd00c6185b
@@ -153,7 +153,12 @@ const chooseItem = (item: LayoutMenuItem, event: MouseEvent) => {
|
||||
emit('chosen', { item, event })
|
||||
}
|
||||
|
||||
const toggle = () => menuButton.value?.el.click()
|
||||
const toggle = () => {
|
||||
menuButton.value?.el.click()
|
||||
if (props.mountMenuOnBody) {
|
||||
menuButtonBounding.update()
|
||||
}
|
||||
}
|
||||
|
||||
// ok this is a bit hacky, but it's done because of headlessui's limited API
|
||||
// the point of this is 1) cast any to bool 2) store 'open' state locally
|
||||
|
||||
Reference in New Issue
Block a user