Skip to content

lost focus erase input #37

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

3 participants

@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
Owner
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
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
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
Owner
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
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
Owner
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
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
Owner
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
Owner
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
Something went wrong with that request. Please try again.