Fix: disabled dropdown buttons should not open

When clicking a dropdown button with `class="disabled"` the corresponding dropdown content will not be opened.

Fixes #5370