mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
删除无效代码
This commit is contained in:
parent
9f2417a3ff
commit
ff6f3d32d6
@ -147,14 +147,10 @@ export default class IconPickerControl extends React.PureComponent<IconPickerPro
|
||||
}
|
||||
|
||||
const {
|
||||
formItem,
|
||||
onChange
|
||||
} = this.props;
|
||||
const selectedOptions = formItem ? formItem.selectedOptions : [];
|
||||
if (!this.state.inputValue) {
|
||||
const newValue = selectedOptions.concat();
|
||||
newValue.pop();
|
||||
|
||||
if (!this.state.inputValue) {
|
||||
onChange('');
|
||||
this.setState({
|
||||
inputValue: ''
|
||||
|
Loading…
Reference in New Issue
Block a user