Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion add event on blur input #439

Open
crisferar opened this issue Aug 5, 2020 · 0 comments
Open

Suggestion add event on blur input #439

crisferar opened this issue Aug 5, 2020 · 0 comments

Comments

@crisferar
Copy link

crisferar commented Aug 5, 2020

Hello, I think it is interesting to add an event blur in the inputs. Someone like me may have a need to use this event. In my case I have solved it by adding the following lines in the jquery.easy-autocomplete.js code:

/* Events */
onClickEvent: function() {},
onSelectItemEvent: function() {},
onLoadEvent: function() {},
onChooseEvent: function() {},
onKeyEnterEvent: function() {},
onMouseOverEvent: function() {},
onMouseOutEvent: function() {},	
onShowListEvent: function() {},
onHideListEvent: function() {},
onBlurEvent: function() {} /* New line */
			function bindBlur() {
				$field.blur(function() {
					
					config.get("list").onBlurInput(); /* New line */

					setTimeout(function() { 
						
						selectedElement = -1;
						hideContainer();
					}, 250);
				});
			}

Congratulations on the great work done with easyautocomplete. Greetings, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant