sveltestrap icon indicating copy to clipboard operation
sveltestrap copied to clipboard

what about multilevel dropdown?

Open TimurAditazz opened this issue 3 years ago • 4 comments

like https://mdbootstrap.com/docs/standard/extended/dropdown-multilevel/#

TimurAditazz avatar Aug 05 '21 12:08 TimurAditazz

Hi @TimurAditazz , Thanks, that should be supported if you nest the menus, however this issue likely needs to be resolved first: #297

I'll take a look at this again.

bestguy avatar Aug 05 '21 16:08 bestguy

I tried a straightforward way but was not lucky - all submenu comes simultaneously in weird positions at least. Thanks

TimurAditazz avatar Aug 06 '21 07:08 TimurAditazz

Hi @TimurAditazz , so this almost works as-is: https://svelte.dev/repl/28dc6f65caf543d8934790ac1280b626?version=3.42.1 However, the outer menu does not close without clicking again outside.
Kind of surprised it works at all :-). But I see some improvements here, will take a look further.

bestguy avatar Aug 06 '21 21:08 bestguy

Thank you @bestguy

TimurAditazz avatar Aug 09 '21 06:08 TimurAditazz