未验证 提交 b167bcf0 编写于 作者: C catouse

* picker: optimize style in checkable mode.

上级 78a5c08f
......@@ -342,7 +342,7 @@
if (that.disabled) {
return;
}
if (that.dropListShowed) {
if (that.dropListShowed && !options.checkable) {
e.preventDefault();
e.stopPropagation();
return;
......@@ -351,7 +351,7 @@
if (that.disabled) {
return;
}
if (!$selections.hasClass('sortable-sorting') && !$(e.target).closest('.picker-selection-remove').length && !that.dropListShowed) {
if (!$selections.hasClass('sortable-sorting') && !$(e.target).closest('.picker-selection-remove').length && (!that.dropListShowed || options.checkable)) {
that.focus();
}
});
......
......@@ -346,4 +346,11 @@
background-color: @color-pale!important;
}
}
.picker-option-active .picker-option-text-matched,
.picker-option:hover .picker-option-text-matched {
color: @color-primary!important;
&:before {
background: @color-primary!important;
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册