Skip to content

Commit

Permalink
Merge pull request baidu#10245 from 2betop/fix-combo-defaultvalue
Browse files Browse the repository at this point in the history
fix: 修复 combo 中通过 visibleOn 新出来的字段默认值没有起作用的问题 Close: baidu#9947
  • Loading branch information
hsm-lv authored May 17, 2024
2 parents 3e300d7 + 5f12219 commit b52bc93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amis-core/src/renderers/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ export default class Form extends React.Component<FormProps, object> {
return;
}
store.changeValue(name, value, changePristine);
if (!changePristine) {
if (!changePristine || typeof value !== 'undefined') {
(formLazyChange === false ? this.emitChange : this.lazyEmitChange)(
submit
);
Expand Down

0 comments on commit b52bc93

Please sign in to comment.