fix: change controlled condition

pull/6816/head
KumJungMin 2024-11-20 00:21:01 +09:00
parent f63af16ad7
commit 9fce930138
1 changed files with 1 additions and 1 deletions

View File

@ -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() {