避免设置 undefined 后把变量删了
This commit is contained in:
parent
696bf0e556
commit
8642cd77b7
|
@ -533,7 +533,7 @@ export default class ImageControl extends React.Component<
|
|||
: newValue;
|
||||
}
|
||||
|
||||
onChange((this.emitValue = newValue), undefined, changeImmediately);
|
||||
onChange((this.emitValue = newValue || ''), undefined, changeImmediately);
|
||||
}
|
||||
|
||||
handleSelect() {
|
||||
|
|
Loading…
Reference in New Issue