-
Notifications
You must be signed in to change notification settings - Fork 723
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
Error in JS console when entering text #168
Comments
Hi @callumprentice! That error doesn't look like code contained within the keyboard nor caret plugin. It could be another script interfering. But, I can add a safety measure to prevent an error at that line of code. Maybe a fiddle would help. You can modify this demo to give you a starting point. |
Thanks @Mottie - managed to get a fiddle that illustrates it - seems to be tickled when i open keyboard, enter keys with mouse (not keyboard) and hit enter. seems to be caused by the $.keyboard.keyaction.enter = function (base) { line |
Interesting... if you $.keyboard.keyaction.enter = function (base) {
base.accept();
$('form').submit();
return false;
}; I'll still look into fixing this so no error occurs. |
Great - thanks @Mottie |
Hi! Great work and thank you for an excellent product.
I see an error in the JS console on OS X & Chrome 26.0.1410.65 when I enter text and press the Enter key in my keyboard (which I have set up to accept):
Uncaught TypeError: Object function (e){return b.access(this,function(e){return e===t?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)} has no method 'replace' jquery.keyboard.js:698
I'm using this version of jQuery:
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.10.2.min.js"></script>and version Version 1.17.5 of jquery.keyboard.js
This is my code to add a keyboard to my page:
I haven't made a fiddle for this yet - but I can do if the error isn't obvious.
I was able to remove the error for me as per the code by adding
useCombos: false in my initialization.
Cheers.
The text was updated successfully, but these errors were encountered: