Skip to content

Commit

Permalink
Pipe the onTouchEnd event down to MultiValueRemove's props
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckbergeron committed Jun 29, 2018
1 parent d955def commit 69abb3f
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Select.js
Original file line number Diff line number Diff line change
@@ -1204,6 +1204,7 @@ export default class Select extends Component<Props, State> {
key={this.getOptionValue(opt)}
removeProps={{
onClick: () => this.removeValue(opt),
onTouchEnd: () => this.removeValue(opt),
onMouseDown: e => {
e.preventDefault();
e.stopPropagation();
2 changes: 2 additions & 0 deletions src/components/MultiValue.js
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ export type ValueProps = LabelProps & {
isFocused: boolean,
isDisabled: boolean,
removeProps: {
onTouchEnd: any => void,
onClick: any => void,
onMouseDown: any => void,
},
@@ -56,6 +57,7 @@ export type MultiValueRemoveProps = CommonProps & {
children: Node,
innerProps: any,
removeProps: {
onTouchEnd: any => void,
onClick: any => void,
onMouseDown: any => void,
},

0 comments on commit 69abb3f

Please sign in to comment.