ElemeFE / ElemeFE/element-react

Input组件中onIconClick函数的event是undefined

Open
#866 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

### Description

Input组件的onIconClick函数的event未传递,导致event为undefined。
连锁反应,导致:Select组件中设置clearable的时候,点击x清空select框的时候,会出现报错,无法清除内容

### Reproduce Steps

1、Input组件中的bug:

![element_react](https://user-images.githubusercontent.com/21993582/47061140-d4fe4000-d202-11e8-822f-ab840c4b9fcc.jpg)

2、从而导致Select组件中,clearable属性,清空select框的bug:

![11_57_11__10_17_2018](https://user-images.githubusercontent.com/21993582/47061461-2bb84980-d204-11e8-829e-757b8ab141d1.jpg)

![11_59_15__10_17_2018](https://user-images.githubusercontent.com/21993582/47061470-370b7500-d204-11e8-9e2f-7c08da4b057b.jpg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.