Topic: Nav Dropdown Flashes on First Click
sherylg343 free asked 1 year ago
Expected behavior Click on dropdown menu link and have menu items/links appear for selection Actual behavior Dropdown Menu flashes and disappears. A second click and any subsequent clicks will cause the menu to stay open for selection. This nav header only appears on home page for large screens. NOTE: followed mdb code. regular links work fine - only dropdown menus don't work as expected. Also, a previous version works fine. Have compared 2 sets of code and found no significant differences. And commented out those differences and still had problem. Switched out version of jquery - no difference. Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/sherylg343/3112724 https://janeric2.herokuapp.com/ - latest version does not work https://janeric.herokuapp.com/ - initial version does work
Your snippet should be using jQuery technology, now it uses MDB Standard and it won't work. I've pasted your dropdowns code and in the snippet it works properly for both of them: https://mdbootstrap.com/snippets/jquery/marcin-luczak/3113085
Have you changed something in the setup of your code between versions?
Keep coding, Marcin
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: MDB4 4.19.2
- Device: MacBook Pro
- Browser: Chrome
- OS: OS 10.12.6
- Provided sample code: No
- Provided link: Yes