mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-30 11:16:12 +08:00
style(dropdown-item): when disabled its mouse style should be disabled (#1603)
This commit is contained in:
parent
598b798555
commit
8e653df457
@ -33,6 +33,8 @@ export default defineComponent({
|
||||
const _instance = getCurrentInstance()
|
||||
|
||||
function handleClick(e: UIEvent) {
|
||||
// if disabled don't collapse the drop-down list
|
||||
if(props.disabled) return
|
||||
if (elDropdown.hideOnClick.value) {
|
||||
elDropdown.handleClick?.()
|
||||
}
|
||||
|
@ -137,9 +137,8 @@
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
cursor: default;
|
||||
cursor: not-allowed;
|
||||
color: $--font-color-disabled-base;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user