Skip to content

Commit 63acbd4

Browse files
committed
fix(autocomplete): [autocomplete] fix dispatch form-item validate error
1 parent b0aaef7 commit 63acbd4

File tree

1 file changed

+4
-0
lines changed
  • packages/renderless/src/autocomplete

1 file changed

+4
-0
lines changed

packages/renderless/src/autocomplete/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ export const handleFocus =
110110
export const handleBlur =
111111
({ emit, state, dispatch, props }: Pick<IAutoCompleteRenderlessParams, 'emit' | 'state' | 'dispatch' | 'props'>) =>
112112
() => {
113+
// 如果没有激活状态,直接返回
114+
if (!state.activated) {
115+
return
116+
}
113117
state.suggestionDisabled = true
114118
emit('blur')
115119
if (state.validateEvent) {

0 commit comments

Comments
 (0)