From 22c1f86ca1ff135a77a13edec9762aa0b1b4844f Mon Sep 17 00:00:00 2001 From: Netfan Date: Mon, 16 Dec 2024 00:57:10 +0800 Subject: [PATCH] fix: `disabledOnChangeListener` not work in form (#5146) --- .../@core/ui-kit/form-ui/src/form-render/form-field.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue b/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue index d2a09f79..355359dd 100644 --- a/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue +++ b/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue @@ -231,11 +231,10 @@ function fieldBindEvent(slotProps: Record) { ...(disabledOnInputListener ? { onInput: undefined } : {}), }; } - return disabledOnInputListener - ? { - onInput: undefined, - } - : {}; + return { + ...(disabledOnInputListener ? { onInput: undefined } : {}), + ...(disabledOnChangeListener ? { onChange: undefined } : {}), + }; } function createComponentProps(slotProps: Record) {