Topic: Wysiwyg - dropdowns open and immediately close

meesha81 priority asked 1 week ago


This bug can be (and IMHO is) connected to my previous reported bug with dropdowns: https://mdbootstrap.com/support/standard/dropdown-unable-to-init-dropdown-after-content-dynamical-reload/

I can tell you, that I have find out during this bugreport that behavior is the same with my common dropdown bugreport. Only difference is animation on|off. With animation, you can see double event - open and close. Without animation you can se "nothing".

What is wrong: If you init WYSIWIG and then reload content dynamically and do once more init, dropdowns (text color, styles etc.) are not usable, because after open they are immediatelly closed. It looks like chaining events. Disponse do not destroy dropdowns events or dropdowns have problem with invalid removing from dom (some events remains..?).

  1. Open snippet
  2. Click INIT => wysiwyg = CORRECT
  3. Reload content => wysiwyg lost = CORRECT
  4. Click INIT => wysiwyg looks fine, BUT DROPDOWN menu is not usable, becase is closed immediatelly.

https://mdbootstrap.com/snippets/standard/meesha81/6141805

So this bug is probably consequence of bug in dropdown menus described in my previous bugreport.


cassie2698bratt free commented 1 week ago

Hello,

You suspect the WYSIWYG dropdown issue is related to a previously reported bug (https://mdbootstrap.com/docs/standard/components/dropdowns/). Both involve dropdowns not working after content reload and re-initialization. You believe it might be an event chaining issue where the open event triggers the close event immediately. The provided snippet ([https://mdbootstrap.com/docs/standard/components/dropdowns/] https://www.marykayin-touch.com (https://mdbootstrap.com/docs/standard/components/dropdowns/)) seems to confirm this behavior.


meesha81 priority commented 1 week ago

Yes, this problem is also in mdb page, also "profile" button top right at: https://mdbootstrap.com/docs/standard/content-styles/icons/ So I hope it will be fixed soon, because it is critical with high impact...


Grzegorz Bujański staff answered 1 week ago


Yes. This is a bug related to a bug in dropdowns. We are already working on a solution.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 7.3.1
  • Device: PC
  • Browser: Chrome
  • OS: Win11
  • Provided sample code: No
  • Provided link: Yes