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

No caret $el.length #672

Closed
msj121 opened this issue May 31, 2018 · 2 comments
Closed

No caret $el.length #672

msj121 opened this issue May 31, 2018 · 2 comments

Comments

@msj121
Copy link

msj121 commented May 31, 2018

In the function (on line 3091):

$keyboard.caret = function($el, param1, param2) {
   if (!$el || !$el.length || $el.is(':hidden') || $el.css('visibility') === 'hidden') {

I added !$el in the above if statement to make sure there is an object, got an error before this change:

window.onerror: TypeError: null is not an object (evaluating '$el.length')

@Mottie
Copy link
Owner

Mottie commented May 31, 2018

Hi @msj121!

This was added back in Feb in PR #651. Please update your version.

@Mottie
Copy link
Owner

Mottie commented Jul 5, 2018

I'm guessing this issue has been resolved, so I'm going to close it. If you continue to have problems, please feel free to continue the discussion in this thread.

@Mottie Mottie closed this as completed Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants