Skip to content

Commit

Permalink
Fixes liferay#1285 - Remove the clearInput method in favor of the inp…
Browse files Browse the repository at this point in the history
…utValue API
  • Loading branch information
matuzalemsteles committed Dec 4, 2018
1 parent 13d55b4 commit 5e97840
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion packages/clay-multi-select/demos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ <h2>With only data remote</h2>

function addToSelectedItems(event) {
event.target.selectedItems = event.target.selectedItems;
event.target.clearInput();
event.target.inputValue = '';
event.target.filteredItems = [];
}

Expand Down
8 changes: 0 additions & 8 deletions packages/clay-multi-select/src/ClayMultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,6 @@ class ClayMultiSelect extends ClayComponent {
this._itemFocused = null;
}

/**
* Clears the input value.
* @public
*/
clearInput() {
this.refs.formGroupInput.refs.input.value = '';
}

/**
* @inheritDoc
*/
Expand Down

0 comments on commit 5e97840

Please sign in to comment.