You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quickly click Group1 and Group2 alternately until the options from one menu show up in the other
Code and Logs
Having debugged the events, it appears that the problem is multiple calls of the ActionGroup._toggle_dropdown(). Both the on_release and dismiss events trigger the same _toggle_dropdown. The result is that the event is called three times so the is_open property is set incorrectly.
The text was updated successfully, but these errors were encountered:
I've noticed the bug too, however I believe that those lines aren't entirely bad. Instead, it appears to me that there was a design flaw since the introduction of the DropDown widget and that's self.dismiss() in both on_touch_down and in on_touch_up.
It's not like that's bad per se, however on_dismiss event is triggered in both of them, which quickly falls down with the current implementation of Spinner/DropDown-ish like behavior that binds to that particular event the _toggle_dropdown() function.
In most of the DropDowns I've seen the elements are removed when the touch/click is released, so I tried that. When I removed the self.dismiss() part for DropDown.on_touch_down(), it made stuff better, but I still think the widget itself needs a rewrite as it doesn't use anything but DropDown from the Spinner it currently uses.
Versions
Description
Steps to recreate the problem
python3 ./kivy/uix/actionbar.py
Code and Logs
Having debugged the events, it appears that the problem is multiple calls of the ActionGroup._toggle_dropdown(). Both the on_release and dismiss events trigger the same _toggle_dropdown. The result is that the event is called three times so the is_open property is set incorrectly.
The text was updated successfully, but these errors were encountered: