[fix] actions menu freezing ui (#2187)
This PR fixes a bug where a render to the popover component would cause the menu to never close. ### Change Type - [x] `patch` — Bug fix ### Test Plan 1. Open the quick actions menu with two shapes selected 2. Click the group button 3. Click on the canvas The menu should close. ### Release Notes - Fix actions menu not closing when clicking the canvas after grouping items via the actions menu.
This commit is contained in:
parent
9b2b1411aa
commit
185a0ae658
3 changed files with 11 additions and 7 deletions
|
@ -41,6 +41,10 @@ export function useCanvasEvents() {
|
|||
})
|
||||
|
||||
if (editor.openMenus.length > 0) {
|
||||
editor.updateInstanceState({
|
||||
openMenus: [],
|
||||
})
|
||||
|
||||
document.body.click()
|
||||
editor.getContainer().focus()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue