mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-30 11:16:12 +08:00
fix(components): prevent blur event when is disabled (#19320)
fix: prevent blur event when is disabled
This commit is contained in:
parent
79c43db20e
commit
0e9c6c062d
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div ref="wrapperRef" :class="ns.b()">
|
||||
<div ref="wrapperRef" :class="[ns.b(), ns.is('disabled', disabled)]">
|
||||
<el-input
|
||||
v-bind="mergeProps(passInputProps, $attrs)"
|
||||
ref="elInputRef"
|
||||
|
@ -271,6 +271,7 @@ $color-picker-size: map.merge($common-component-size, $color-picker-size);
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
pointer-events: none;
|
||||
.#{$namespace}-color-picker__trigger {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
@ -189,6 +189,7 @@
|
||||
border-color: map.get($input-disabled, 'border');
|
||||
color: map.get($input-disabled, 'text-color');
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
|
@ -58,6 +58,7 @@
|
||||
|
||||
@include when(disabled) {
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
background-color: getCssVar('fill-color', 'light');
|
||||
@include mixed-input-border(#{getCssVar('input-tag-disabled-border')});
|
||||
|
||||
|
@ -323,6 +323,7 @@
|
||||
.#{$namespace}-input__wrapper {
|
||||
background-color: map.get($input-disabled, 'fill');
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
@include mixed-input-border(map.get($input-disabled, 'border'));
|
||||
}
|
||||
|
||||
|
@ -15,6 +15,10 @@
|
||||
map.get($mention, 'shadow')
|
||||
);
|
||||
}
|
||||
|
||||
@include when(disabled) {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
@include b(mention-dropdown) {
|
||||
|
@ -56,6 +56,7 @@
|
||||
|
||||
@include when(disabled) {
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
|
||||
background-color: getCssVar('fill-color', 'light');
|
||||
color: getCssVar('text-color', 'placeholder');
|
||||
|
Loading…
Reference in New Issue
Block a user