Răsfoiți Sursa

fix: `disabledOnChangeListener` not work in form (#5146)

Netfan 3 luni în urmă
părinte
comite
22c1f86ca1

+ 4 - 5
packages/@core/ui-kit/form-ui/src/form-render/form-field.vue

@@ -231,11 +231,10 @@ function fieldBindEvent(slotProps: Record<string, any>) {
       ...(disabledOnInputListener ? { onInput: undefined } : {}),
     };
   }
-  return disabledOnInputListener
-    ? {
-        onInput: undefined,
-      }
-    : {};
+  return {
+    ...(disabledOnInputListener ? { onInput: undefined } : {}),
+    ...(disabledOnChangeListener ? { onChange: undefined } : {}),
+  };
 }
 
 function createComponentProps(slotProps: Record<string, any>) {