New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data-Toggle-Trigger-Off Not Working With CSS Selectors #94
Comments
Hi @austin-LL 👋 Great to read that you love this library! ❤️ Ok, this use case is quite tricky. Let me investigate. |
Oh man! I understood what's going on! First you open the menu. Ok, nothing to report. I've tried changing all the I guess the solution should be to change the architecture for something more standard: a sub-menu contained inside its related menu item. |
Ok, I thought about an improvement that could help you. Let me test it. |
Hey @austin-LL 👋 That new release seems to fix your issue: https://github.com/Twikito/easy-toggle-state/releases/tag/v1.15.1. Can you confirm? |
Perfect, that took care of it! Thank you so much for your help! |
Hello! I absolutely love this library, so thanks for your work on it.
I'm having an issue using CSS selectors with data-toggle-trigger-off. I've got a dropdown nav that uses easy toggle state, and then two levels of sub-menus that use it as well. I've made a codepen to show the problem in action: https://codepen.io/awinnett/pen/KKMbBMV?editors=1000
In this case, I can open the dropdown, use the level one trigger to open the submenu with the level two trigger, and use data-toggle-trigger-off to get back to the menu with the level one trigger. However, if I go down to the level three trigger, I can't go all the way back to level one, because data-toggle-trigger-off stops working at that point at level two after that for some reason.
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: