Skip to content

Commit

Permalink
fix(Input): stop bubble. close #1417
Browse files Browse the repository at this point in the history
  • Loading branch information
nianxiongdi committed Dec 4, 2019
1 parent a6ef3b0 commit b74d455
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/input/base.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ class Base extends React.Component {
}

onChange(e) {
if ('stopPropagation' in e) {
e.stopPropagation();
} else if ('cancelBubble' in e) {
e.cancelBubble();
}

let value = e.target.value;

if (this.props.trim) {
Expand Down

0 comments on commit b74d455

Please sign in to comment.