The Wayback Machine - https://web.archive.org/web/20200921045358/https://github.com/Mottie/keyboard/issues/37
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

lost focus erase input #37

Closed
xrfeox opened this issue Nov 14, 2011 · 9 comments
Closed

lost focus erase input #37

xrfeox opened this issue Nov 14, 2011 · 9 comments
Labels

Comments

@xrfeox
Copy link

@xrfeox xrfeox commented Nov 14, 2011

Hi mottie, when i put theses options

            usePreview: false,
            stayOpen: true,
            lockInput: true,

when i click out of keyboard area i lose all data typed, even in playground http://jsfiddle.net/Mottie/Em8sG/ it happen

@Mottie
Copy link
Owner

@Mottie Mottie commented Nov 14, 2011

Hi Xrfeox!

Yes, it is working as it should. If you want the content to stay, then set the autoAccept option to true.

@Mottie Mottie closed this Nov 14, 2011
@xrfeox
Copy link
Author

@xrfeox xrfeox commented Nov 17, 2011

Ow thanks for information now its working fine, but i just wanted to do it without a post, no worries i can convive with it ;)

@rshibli
Copy link

@rshibli rshibli commented Apr 24, 2012

Hello! Is there any way to change this behavior? I am sending an ajax request on Accept and do not want to set autoAccept to true. Basically, when a user miss-clicks the input field becomes empty (by the way: this behavior is not true on chrome running on Mac OS 10.7) which is problematic on a touchscreen.

@Mottie
Copy link
Owner

@Mottie Mottie commented Apr 24, 2012

Do you have a demo of the problem you are having? I know clicking outside of the keyboard will close it, so maybe try it with the stayOpen option set to true. If that doesn't work for you, I would need to see a demo of this issue to help me troubleshoot and find the source of the problem easier. Thanks!

@rshibli
Copy link

@rshibli rshibli commented Apr 25, 2012

Hi!

Thank you for your response; I've managed to recreate this on jsfiddle (even with a Mac running chrome)

http://jsfiddle.net/hY24G/

if you type in 3 letters and then click outside the keyboard the letters disappear from the textbox.

Thanks!

@Mottie
Copy link
Owner

@Mottie Mottie commented Apr 30, 2012

Hmm, I'm not sure how to fix this since clicking outside of the keyboard usually means someone wants to close the keyboard. Maybe try setting the autoAccept to true but also use the validate function to check if the contents are valid - save it if it is or revert to the last valid input if not.

@rshibli
Copy link

@rshibli rshibli commented May 7, 2012

Hi, thanks but that won't work for my case. Also, please note that even if you click inside the keyboard the letters disappear. I think this is a bug.

Thanks!

@Mottie
Copy link
Owner

@Mottie Mottie commented May 8, 2012

I'll have to look at this again.. it seems to work fine in the basic demos, but not in the one you shared. I'll take a closer look when I have more time. Sorry!

@Mottie
Copy link
Owner

@Mottie Mottie commented May 13, 2012

Ok @rshibli, I think I've fixed this problem in version 1.9.18! Thanks again for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.