From f865da17fc4c0b3a8b3a27d2269cf3ab92acfc3b Mon Sep 17 00:00:00 2001 From: jquense Date: Sat, 3 Oct 2015 13:17:45 -0400 Subject: [PATCH] [removed] IOS click hack, since react 0.14 handles this correctly --- src/Multiselect.jsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Multiselect.jsx b/src/Multiselect.jsx index 58519f293..e0d7e549d 100644 --- a/src/Multiselect.jsx +++ b/src/Multiselect.jsx @@ -138,19 +138,12 @@ var Multiselect = React.createClass({ this.refs.list && validateList(this.refs.list) }, - componentDidMount() { - // https://github.com/facebook/react/issues/1169 - if( support.ios ) - compat.findDOMNode(this.refs.wrapper).onClick = ()=>{} - }, - componentWillReceiveProps(nextProps) { var { data, value, valueField, searchTerm } = nextProps , values = _.splat(value) , current = this.state.focusedItem , items = this.process(data, values, searchTerm) - this.setState({ processedData: items, focusedItem: items.indexOf(current) === -1 ? items[0] : current, @@ -418,7 +411,7 @@ var Multiselect = React.createClass({ e.preventDefault() if (isOpen) this.setState({ focusedItem: next, ...nullTag }) - else this.open() + else this.open() } else if (key === 'ArrowUp') { var prev = focusedItem === null