Closed jh0ker closed 1 week ago
Oruga version: v0.9.0 Vuejs version: 3.5.12 OS/Browser: Windows Firefox/Brave
When selecting a dropdown item in a dropdown with multiple set, the item is selected, but the dropdown closes.
multiple
The dropdown should remain open, to allow the selection of more items. This used to be the behavior in v0.8
The dropdown closes
It appears that in commits 3e4291ac94556603543a92bd17bec2f5b8cc60db and d6b792f0850d59ea85857c8ff7a9e4db570d134a, the line at https://github.com/oruga-ui/oruga/blob/8fb6f7620351363705098897d8022e277c40c81e/packages/oruga/src/components/dropdown/Dropdown.vue#L338 was missed and should have been changed to if (!isTrueish(props.multiple)) {, similar to other references to props.multiple.
if (!isTrueish(props.multiple)) {
props.multiple
Hey @jh0ker, thanks for checking out the new version and for finding this issue!
Will be fixes soon.
Hey! I appreciate the quick response. Thank you for your work!
Overview of the problem
Oruga version: v0.9.0 Vuejs version: 3.5.12 OS/Browser: Windows Firefox/Brave
Description
When selecting a dropdown item in a dropdown with
multiple
set, the item is selected, but the dropdown closes.Steps to reproduce
Expected behavior
The dropdown should remain open, to allow the selection of more items. This used to be the behavior in v0.8
Actual behavior
The dropdown closes
Fix suggestion
It appears that in commits 3e4291ac94556603543a92bd17bec2f5b8cc60db and d6b792f0850d59ea85857c8ff7a9e4db570d134a, the line at https://github.com/oruga-ui/oruga/blob/8fb6f7620351363705098897d8022e277c40c81e/packages/oruga/src/components/dropdown/Dropdown.vue#L338 was missed and should have been changed to
if (!isTrueish(props.multiple)) {
, similar to other references toprops.multiple
.