Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport - The dropdown state doesn't change if the dropdown is expanded or not #21315

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
css: {
_selected: $parent.root.isSelected(option.value),
_hover: $parent.root.isHovered(option, $element),
_expended: $parent.root.getLevelVisibility($data),
_expended: $parent.root.getLevelVisibility($data) || $data.visible,
_unclickable: $parent.root.isLabelDecoration($data),
_last: $parent.root.addLastElement($data),
'_with-checkbox': $parent.root.showCheckbox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
css: {
_selected: $parent.isSelected(option.value),
_hover: $parent.isHovered(option, $element),
_expended: $parent.getLevelVisibility($data),
_expended: $parent.getLevelVisibility($data) && $parent.showLevels($data),
_unclickable: $parent.isLabelDecoration($data),
_last: $parent.addLastElement($data),
'_with-checkbox': $parent.showCheckbox
Expand All @@ -139,6 +139,7 @@
<div class="admin__action-multiselect-dropdown"
data-bind="
click: function(event){
$parent.showLevels($data);
$parent.openChildLevel($data, $element, event);
},
clickBubble: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
border-top: @action-multiselect-tree-lines;
height: 1px;
top: @action-multiselect-menu-item__padding + @action-multiselect-tree-arrow__size/2;
width: @action-multiselect-tree-menu-item__margin-left + @action-multiselect-menu-item__padding;
width: @action-multiselect-tree-menu-item__margin-left;
}

// Vertical dotted line
Expand Down