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

problem when "display: none" on the DIV that contains keyboard #171

Closed
hmanndk opened this issue May 14, 2013 · 2 comments
Closed

problem when "display: none" on the DIV that contains keyboard #171

hmanndk opened this issue May 14, 2013 · 2 comments

Comments

@hmanndk
Copy link

hmanndk commented May 14, 2013

Hi,

Im using your great keyboard.
I have some jquery code that waits for an on physical keyboard.
When a user hits I do:
$('#input).getkeyboard().accept();
$('#div_with_input_and_keyboard').css('display','none');

the input actually gets accepted and the div is hidden.
But the keyboard stays open and visible?

and I get this error (in chrome developer tools):

Uncaught TypeError: Object function (a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)} has no method 'replace'

in jquery.keyboard.js - line number 662

I can see it has something to do with combos? I dont use combos at all, so a little surprised here..

@Mottie
Copy link
Owner

Mottie commented May 14, 2013

Hi @hmanndk!

After you execute the above code, make sure to return false or event.stopPropagation().

I actually think this might be related to issue #168, which should be fixed in the latest version.

@Mottie
Copy link
Owner

Mottie commented Nov 17, 2013

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 this discussion.

@Mottie Mottie closed this as completed Nov 17, 2013
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