避免设置 undefined 后把变量删了

This commit is contained in:
2betop 2020-02-25 16:07:02 +08:00
parent 696bf0e556
commit 8642cd77b7
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ export default class ImageControl extends React.Component<
: newValue; : newValue;
} }
onChange((this.emitValue = newValue), undefined, changeImmediately); onChange((this.emitValue = newValue || ''), undefined, changeImmediately);
} }
handleSelect() { handleSelect() {