Skip to content

Commit

Permalink
🐛 Fix Upload trigger onClick twice to parent node
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Nov 27, 2019
1 parent f79b094 commit a33ee75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AjaxUploader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ class AjaxUploader extends Component {
id={id}
type="file"
ref={this.saveFileInput}
onClick={e => e.stopPropagation()} // https://github.com/ant-design/ant-design/issues/19948
key={this.state.uid}
style={{ display: 'none' }}
accept={accept}
Expand Down

0 comments on commit a33ee75

Please sign in to comment.