Skip to content

Commit

Permalink
allow icon buttons #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Pollock committed Jul 7, 2018
1 parent 06e0c31 commit 13e685a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 121 deletions.
58 changes: 0 additions & 58 deletions src/components/fields/magic-select/MagicChooser.js

This file was deleted.

50 changes: 0 additions & 50 deletions src/components/fields/magic-select/MagicChooser.test.js

This file was deleted.

10 changes: 10 additions & 0 deletions src/components/fields/magic-select/MagicSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class MagicSelect extends React.PureComponent {
this.onInputFocus = this.onInputFocus.bind(this);
this.renderItem = this.renderItem.bind(this);
this.onInputBlur = this.onInputBlur.bind(this);
this.onChangeListType = this.onChangeListType.bind(this);
}

/**
Expand Down Expand Up @@ -68,6 +69,14 @@ export class MagicSelect extends React.PureComponent {
this.props.onValueChange(value);
}

/**
* Update list of tags to show
* @param {String}newType
*/
onChangeListType(newType){
this.setState({currentList:newType});
}

/**
* Render option
*
Expand Down Expand Up @@ -125,6 +134,7 @@ export class MagicSelect extends React.PureComponent {
<div
className={classNames('magic-select', this.props.className)}
>

<Autocomplete
getItemValue={(item) => item.value}
items={this.items()}
Expand Down

This file was deleted.

0 comments on commit 13e685a

Please sign in to comment.