Skip to content

Commit

Permalink
add workaround for primefaces#630
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobe91 committed Nov 7, 2018
1 parent 4ac07a6 commit 0852733
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/autocomplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ export class AutoComplete extends Component {
}

let query = event.target.value;
if(!this.props.multiple) {
// https://github.com/primefaces/primereact/issues/630
/*if(!this.props.multiple) {
this.updateModel(event, query);
}
}*/

if(query.length === 0) {
this.hidePanel();
Expand Down Expand Up @@ -500,9 +501,10 @@ export class AutoComplete extends Component {

this.searching = false;

if (this.inputEl && !this.props.multiple) {
// https://github.com/primefaces/primereact/issues/630
/*if (this.inputEl && !this.props.multiple) {
this.updateInputField(this.props.value);
}
}*/

if (this.props.tooltip && prevProps.tooltip !== this.props.tooltip) {
if (this.tooltip)
Expand Down

0 comments on commit 0852733

Please sign in to comment.