Closed nikitapozdeev closed 3 years ago
Hi @crabn3bula,
Thanks for this! I took a look at the code and I think a better option might be removing visibility and setting z-index: -1
.
I just pushed this change and it seems to be fixed on the demo page.
Is it working for you too?
@negomi Thanks for your reply.
I tried your suggestions, but with z-index: -1
mouse events stop working for the menu.
It might be better to do something like this zIndex: isOpen ? 1000 : -1
, this way the problem seems to be solved as long as the transition duration is 0.5s. If in the future this value changes for example to1s, then the problem will reappear.
So that`s why i initially decided to override transition property in this specific menu.
Oh I see. The problem with overriding transition is that it makes the menu disappear while it's closing.
Transition duration is unlikely to change so I like the idea of zIndex: isOpen ? 1000 : -1
for now.
I've just released 2.9.2
which includes that fix.
Thanks again!
Hi. Just a small fix for #419