Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Cannot return to input if usePreview: false and lockInput : true #77

Closed
jdaniells opened this Issue · 4 comments

2 participants

@jdaniells

If I have a keyboard with

usePreview: false
lockInput : true

once I have abandoned the input text, I cannot return to it.

I think the problem is that the attribute readonly is added to the input text and not removed after closing the keyboard.

I fixed it adding this lines:

if (o.lockInput && !o.usePreview) {
base.$el.removeAttr("readonly");
}

Inside the following block in base.close function:
if (!o.alwaysOpen) {
base.$keyboard.hide();
base.isVisible = false;

if (o.lockInput && !o.usePreview) {
base.$el.removeAttr("readonly");
}
}

@Mottie
Owner

Hi jdaniells!

Thanks for reporting this issue and helping find the problem! I'll try to find time to look into this soon. :)

@Mottie Mottie referenced this issue from a commit
@Mottie fixed locked input issue #77 a1cc05e
@Mottie
Owner

Hi jdaniells!

This should now be fixed in version 1.9.19! I appreciate the code fixes! :)

@Mottie
Owner

I'm guessing this issue has been resolved, so I'm going to close it. Please feel free to reopen it if you continue to have problems. Thanks!

@Mottie Mottie closed this
@jdaniells
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.