Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25255] Windows: Setting label.color to null causes label text to become transparent

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-11-08T16:07:21.000+0000
Affected Version/sRelease 6.1.2, Release 7.0.0, Release 6.2.0
Fix Version/sRelease 7.0.0
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeKota Iguchi
Created2017-09-08T11:47:32.000+0000
Updated2017-11-16T02:16:17.000+0000

Description

Description

Setting color property of a label to null causes the label text to become transparent, it should go to the default colour for the platform, I have not tested any other UI elements
var _window = Ti.UI.createWindow();
var label = Ti.UI.createLabel({
    text: 'just a test label'
});
label.addEventListener('click', function(e) {
    label.color = null;
});
_window.add(label);
_window.open()

Steps to reproduce

Add the above code to an existing app.js

Tap the label

Actual

Label becomes transparent

Expected

Label should go to default color

Comments

  1. Kota Iguchi 2017-10-24

    https://github.com/appcelerator/titanium_mobile_windows/pull/1152
  2. Abir Mukherjee 2017-11-16

    Changes are seen in 7.0.0.v20171115153702.

JSON Source