mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-17 21:32:51 +08:00
refactor(hooks): [useFocusController] add disabled attribute (#21032)
refactor(hooks): [useFocusController] add disabled prop Co-authored-by: warmthsea <2586244885@qq.com>
This commit is contained in:
@ -256,9 +256,7 @@ const _ref = computed(() => input.value || textarea.value)
|
||||
const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(
|
||||
_ref,
|
||||
{
|
||||
beforeFocus() {
|
||||
return inputDisabled.value
|
||||
},
|
||||
disabled: inputDisabled,
|
||||
afterBlur() {
|
||||
if (props.validateEvent) {
|
||||
elFormItem?.validate?.('blur').catch((err) => debugWarn(err))
|
||||
|
Reference in New Issue
Block a user