Skip to content

Commit

Permalink
fix(core): 修复select,range等对value不显示的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Dec 27, 2022
1 parent 21303c2 commit 201b3ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/elements/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export class ConfigElement<T extends keyof ConfigTagMap = 'input'> extends IElem
};
} else {
this.provider.value = getValue(this.key, '');
this.provider.setAttribute('value', this.provider.value);

this.provider.onchange = () => {
setValue(this.key, this.provider.value);
};
Expand Down

0 comments on commit 201b3ad

Please sign in to comment.