When the "Actions" dropdown menu is open, deselecting the only checked item in the list causes the dropdown button to become disabled/faded, but it fails to actually close the menu. The dropdown remains trapped open on the screen and becomes completely unresponsive.
Go to content -> Articles, select a single article by checking its checkbox.
Click the Actions button to open the dropdown menu.
While the dropdown menu is still open, click the article's checkbox again to uncheck it.
5.4
The dropdown menu should immediately close, and the Actions button should return to its disabled state.
The dropdown menu remains visible and open on the screen. It becomes slightly faded (opacity drops) and is completely unresponsive to clicks.
Joomla 5.4-dev
I did some further testing and found that this only happens when transitioning from 1 selected item to 0 selected items.
If I have 2 items selected, open the Actions dropdown, and then uncheck 1 of them (leaving 1 still checked), the dropdown closes perfectly as expected.
| Labels |
Added:
No Code Attached Yet
bug
|
||
A minimal solution could be to hide the dropdown ( if its visible/active) when a check box is deselected.
But the tradeoff is that if 4 articles are selected and the actions dropdown is opened and you deselect one article, the dropdown still closes ( but 3 articles are still selected)
A minimal solution could be to hide the dropdown ( if its visible/active) when a check box is deselected.
But the tradeoff is that if 4 articles are selected and the actions dropdown is opened and you deselect one article, the dropdown still closes ( but 3 articles are still selected)
If I have 2 items selected, open the Actions dropdown, and then uncheck 1 of them (leaving 1 still checked), the dropdown closes perfectly as expected.
Is this the ideal behavior?
Isn't it better if the dropdown stays open when there is still a checkbox selected? ( as the values of selected checkboxes is collected when the required action button is pressed, there is no possibility of the deselected articles being processed)
Yes, I think the ideal behavior is to keep the Actions dropdown open as long as at least one item remains selected. It should only close completely (and disable the button) when the user unchecks the final item so that zero items are selected.
Yes, I think the ideal behavior is to keep the Actions dropdown open as long as at least one item remains selected. It should only close completely (and disable the button) when the user unchecks the final item so that zero items are selected.
Thanks for looking into this, would be great if you could do a PR for fixing this (~ ̄▽ ̄)~
@krishnagandhicode im working on a fix, i'll make the PR by tomorrow :)
confirmed