From 9fce93013842abaa92347abc1a4c3cb5451de1a5 Mon Sep 17 00:00:00 2001 From: KumJungMin Date: Wed, 20 Nov 2024 00:21:01 +0900 Subject: [PATCH] fix: change controlled condition --- packages/core/src/baseeditableholder/BaseEditableHolder.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/baseeditableholder/BaseEditableHolder.vue b/packages/core/src/baseeditableholder/BaseEditableHolder.vue index bb63fdd0d..fe03f9fbe 100644 --- a/packages/core/src/baseeditableholder/BaseEditableHolder.vue +++ b/packages/core/src/baseeditableholder/BaseEditableHolder.vue @@ -104,7 +104,7 @@ export default { return this.d_value ?? this.$pcFormField?.initialValue ?? this.$pcForm?.initialValues?.[this.$formName]; }, controlled() { - return this.$inProps.hasOwnProperty('modelValue') ?? (!this.$inProps.hasOwnProperty('modelValue') && !this.$inProps.hasOwnProperty('defaultValue')); + return this.$inProps.modelValue !== undefined; }, // @deprecated use $filled instead filled() {