danyill / oscd-subscriber-later-binding

IEC 61850 Ed 2 subscription for GOOSE and SV in OpenSCD
Apache License 2.0
3 stars 4 forks source link

Drop-down menu disappearing after a single selection #31

Open jarradraumati opened 1 year ago

jarradraumati commented 1 year ago

https://github.com/danyill/oscd-subscriber-lb-siemens/assets/3224671/762b68ca-506f-4c55-962c-167a8562a9e1

When I click the menu and select a tick-box, the menu disappears.

An improvement would be if the menu persisted until the user clicked away (or clicked the menu button again). That would allow the user to select multiple tick-boxes without having to click the menu button again (saving some clicks).

danyill commented 1 year ago

Transferring to the main project: https://github.com/danyill/oscd-subscriber-later-binding

danyill commented 1 year ago

Seems like a good idea, thanks.

danyill commented 8 months ago

Although it seems like a good idea, Material Web Components 0.27 doesn't seem to readily support this. The internets suggests that preventDefault or stopPropagation could be options in some cases/frameworks but they haven't worked for me.

Material Design 3 and Material Web Components 1.4.0 does seem to support this using the keepOpen attribute