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

deprecated jquery calls #5

Open
liedekef opened this issue Oct 30, 2019 · 1 comment
Open

deprecated jquery calls #5

liedekef opened this issue Oct 30, 2019 · 1 comment

Comments

@liedekef
Copy link

In src/js/datepicker.js

this.$el.focus();
should be changed to
this.$el.trigger("focus");

and

this.$el.blur();
should be changed to
this.$el.trigger("blur");

@arronlai
Copy link
Owner

I think blur() or focus() is valid jquery functions to do the same thing? Why the second way is better?

@arronlai arronlai reopened this Mar 18, 2020
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

2 participants