Skip to content

Instantly share code, notes, and snippets.

@TatianaMontoya15
Created June 8, 2016 18:46
Show Gist options
  • Save TatianaMontoya15/e37b704704c0f1fab67e8b2b26806374 to your computer and use it in GitHub Desktop.
Save TatianaMontoya15/e37b704704c0f1fab67e8b2b26806374 to your computer and use it in GitHub Desktop.
updateKeyValueUsersBanco(e){
const {fields: {responsable}, filterUsersBanco} = this.props;
if(e.keyCode == 13 || e.which == 13){
e.preventDefault();
if(responsable.value !== "" && responsable.value !== null && responsable.value !== undefined){
filterUsersBanco(responsable.value).then((data) => {
usersBanco = _.get(data, 'payload.data.data');
const selector = $('.ui.search.responsable');
//selector.search('hide results');
selector.search('show results');
selector.blur();
selector.focus();
}, (reason) => {
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment