Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- handleValueChange: function(e) {
- if (e.val)
- this.props.onChange(e);
- else
- this.props.onRemove && this.props.onRemove(e);
- },
- componentDidMount: function() {
- component = this;
- var $select = $(this.refs.select.getDOMNode());
- var select2 = $select.select2({
- placeholder: this.props.emptyLabel,
- allowClear: this.props.allowClear
- }).on('change', this.handleValueChange);
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement