mirror of
https://github.com/moodle/moodle.git
synced 2025-04-03 15:32:43 +02:00
The issue is that Bootstrap’s dropdown component likely stops event propagation after the first click to manage its own dropdown behavior. This prevents your click event handler from running on subsequent clicks. To fix this, we can handle the event before Bootstrap’s code stops the propagation by using capture option with addEventListener.