mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-17 13:01:46 +08:00
fix: the disabled state should not trigger focus (#18108)
This commit is contained in:
@ -263,6 +263,9 @@ const _ref = computed(() => input.value || textarea.value)
|
||||
const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(
|
||||
_ref,
|
||||
{
|
||||
beforeFocus() {
|
||||
return inputDisabled.value
|
||||
},
|
||||
afterBlur() {
|
||||
if (props.validateEvent) {
|
||||
elFormItem?.validate?.('blur').catch((err) => debugWarn(err))
|
||||
|
Reference in New Issue
Block a user