避免设置 undefined 后把变量删了

This commit is contained in:
2betop 2020-02-25 16:07:02 +08:00
parent dbdc7c2c4e
commit 603be2449c

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