Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make InputItem clear icon behave properly in Android. #251

Merged
merged 2 commits into from
Jan 3, 2019

Conversation

jadertao
Copy link
Contributor

@jadertao jadertao commented Jan 3, 2019

No description provided.

@jadertao
Copy link
Contributor Author

jadertao commented Jan 3, 2019

#248

@@ -203,21 +227,23 @@ export default class InputItem extends React.Component<InputItemProps, any> {
s.input,
error ? s.inputErrorColor : null,
disabledStyle,
// 支持自定义样式
restProps.style || null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
restProps.style || null,
restProps.style,

<TouchableOpacity
style={[s.clear]}
onPress={this.onInputClear}
hitSlop={{ top: 5, left: 5, bottom: 5, right: 5 }}
>
<Icon name="close" />
<Icon name="close" color={android ? 'white' : undefined} />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里只有Android才会显示的话 里面不需要判断了

@BANG88 BANG88 merged commit 877eb38 into ant-design:master Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants