Skip to content

Commit

Permalink
fix(android): default Ti.Ui.TextField.editable is true in #focus()
Browse files Browse the repository at this point in the history
If the proxy doesn't have an explicit value set for editable, assume true by default

Fixes TIMOB-27694
  • Loading branch information
sgtcoolguy committed Dec 20, 2019
1 parent a5dc85d commit 243afd0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -497,7 +497,7 @@ public void focus()
{
super.focus();
if (tv != null && proxy != null && proxy.getProperties() != null) {
final boolean editable = proxy.getProperties().optBoolean(TiC.PROPERTY_EDITABLE, false);
final boolean editable = proxy.getProperties().optBoolean(TiC.PROPERTY_EDITABLE, true);
TiUIHelper.showSoftKeyboard(tv, editable);
}
}
Expand Down

0 comments on commit 243afd0

Please sign in to comment.