ui-library
ui-library copied to clipboard
Multiple options menus can be opened at once
Use webhooks as an example:
- Go to webhooks
- Make sure you have more than one
- Open the options menu for the last record
- Open the options menu for the record before it
It should close the first one before it opens the second one.
Locally I have this console warning:
instrument.js?ea14:109 [portal-vue]: source chec-options-menu already exists
This is turning out to be quite an annoying issue. It's already configured to not allow this and vue-portals documentation leaves a lot to be desired.
Still an issue:
This is a tough problem. The option that appears to solve this in portal-vue
doesn't seem to work as expected, but might be related to multiple MountingPortal
s and using the append
prop. I've been experimenting with allowing the ChecOptionMenu
consumer to specify the node where the menus should render, and turning off append
mode - but I'm getting some funky stuff happening with my browser tabs locking up.
Not sure where to go from here. Might have another look tomorrow.