[AC-4469] Alloy Android button element does not set title attribute
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2016-11-01T15:34:14.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Alloy |
Labels | alloy, android, button |
Reporter | Michael Bahl |
Assignee | Shak Hossain |
Created | 2016-09-18T09:59:06.000+0000 |
Updated | 2016-11-16T18:24:31.000+0000 |
Description
Button title is not set on android when non visiual characters (line break/whitespace)
are used in following alloy definition:
<!-- This one works as expected on Android -->
<Button class="defaultButton"><Label platform="ios" class="defaultLabel"/></Button>
<!-- This does not work on Android -->
<Button class="defaultButton">
<Label platform="ios" class="defaultLabel"/>
</Button>
I would expect that both button definition's would work,
but when I take a look at the derived files I can see that the buttons title
attribute is not set for the second button definition.
In my opinion the label shouldn't have any affect at all cause
the label is marked as ios only element.
Sample project:
https://github.com/MichelBahl/AC-4469
Hello, The issue is not reproducible with your sample code. I did a format on the studio and here is the code looks like
I see only one button on the middle. Thanks.
This ticket is not fixed, please reopen.