ui-library icon indicating copy to clipboard operation
ui-library copied to clipboard

Multiple options menus can be opened at once

Open robbieaverill opened this issue 3 years ago • 3 comments

image

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

robbieaverill avatar Jun 28 '21 21:06 robbieaverill

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.

kvisca avatar Jul 09 '21 18:07 kvisca

Still an issue: image

robbieaverill avatar Sep 29 '21 17:09 robbieaverill

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 MountingPortals 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.

ScopeyNZ avatar Oct 15 '21 00:10 ScopeyNZ