Skip to content

Commit

Permalink
fix(input): 清除按钮点击事件
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczj committed Aug 20, 2018
1 parent c514972 commit e976ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/input/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ class AtInput extends Taro.Component {
/>
{
clear && value
? <View className='at-input__icon' onClick={this.clearValue.bind(this)} >
? <View className='at-input__icon' onTouchStart={this.clearValue.bind(this)} >
<AtIcon value='close-circle' color='#ccc' size='15' />
</View>
: null
}
{
error
? <View className='at-input__icon' onClick={this.handleClickErrIcon.bind(this)} >
? <View className='at-input__icon' onTouchStart={this.handleClickErrIcon.bind(this)} >
<AtIcon value='alert-circle' color='#FF4949' size='15' />
</View>
: null
Expand Down

0 comments on commit e976ca2

Please sign in to comment.