cordova-custom-keyboard
cordova-custom-keyboard copied to clipboard
Input disappears after using comma
Hi,
The Keyboard (Decimalpad) works well ons iOS, but when a comma is entered, the input just disappears. However, when clicked outside the keyboard, the alert does give the correct value.
Is there a way to keep the input visible?
Thanks!
Note: I'm using Phonegap Build
, or . depended by phone language i think. Just replace , with . in your js code.
Thanks for the fast support! How can I change that?
Something like this, not tested by me. CustomKeyboard.open(document.getElementById('decimal').value, 9, function (value) { value = value.replace(/,/g , '.'); document.getElementById('decimal').value = value; }, function (value) { alert('Editing ended with ' + value); fired once when user finished editing. })
Thanks! It works!
And just before the keyboard is fired, the normal keyboard shows up. Is there a way to disable this?
Just make input not editable or prevent propagnition in js or something else.
Hi,
I am facing the same issue. Just before the keyboard is fired, the normal keyboard shows up.
I tried using event.stopPropagation() ($event.stopPropagation() since it's an ionic 1.x project) or setting the input to readonly but it's not working for me.
Any ideas on what else I could try?
<input type='text' readonly />
doesn't work?