Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25286] Windows: editable property of Ti.UI.TextField does not work as expected

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2017-09-18T01:05:26.000+0000
Affected Version/sRelease 6.2.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterNeeraj Mishra
AssigneeKota Iguchi
Created2017-09-14T21:53:27.000+0000
Updated2018-08-06T17:37:03.000+0000

Description

Problem Description:

editable property of Ti.UI.TextField is not working as expected. Even though editable property is applied to TextField, when user clicks on it, border color is updated to blue and background color is updated to white which makes it look like it is editable.

Steps to Reproduce:

Attached the sample project 1. Run the attached Alloy project TestTextFieldEditable 2. index.js has a TextField with gray background 3. Click anywhere else on the window, TextField will be visible with gray background. 4. Click on TextField. This will turn the border color to blue and background color to White making the TextField look like it is editable.

Expected Behavior:

TextField should look like it is not editable once we apply the editable property to it whenever we click anywhere on the screen.

Attachments

FileDateSize
index.js2017-09-14T21:53:20.000+000063
index.tss2017-09-14T21:53:11.000+0000155
index.xml2017-09-14T21:52:57.000+0000172

Comments

  1. Kota Iguchi 2017-09-18

    I would close this as Invalid, because this is a platform component behavior. We are using Xam.Controls.TextBox and I can see that its border turns blue when you focus on the control. It indicates that the component is focused, it does not indicate the text box is editable.
  2. Kota Iguchi 2017-09-25

    [~nmishra] In order to indicate the text box can not be used visually (including focus), you might want to use touchEnabled:false along with editable property.
       var textfield = Ti.UI.createTextField({
           width: Ti.UI.FILL,
           editable: false,
           touchEnabled: false
       });
       
  3. Neeraj Mishra 2017-09-25

    Thank you [~kiguchi]
  4. Eric Merriman 2018-08-06

    Closing as invalid. If incorrect, please reopen.

JSON Source