Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   handleValueChange: function(e) {
  2.     this.props.onChange(e);
  3.   },
  4.   componentDidMount: function() {
  5.     var $select = $(this.refs.select.getDOMNode());
  6.     var select2 = $select.select2({
  7.       placeholder: this.props.emptyLabel,
  8.       allowClear: this.props.allowClear
  9.     }).on('change', this.handleValueChange);
  10.   },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement