Skip to content

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

@jdaniells

Description

@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");
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions