Skip to content

Label, Button and Span text removing leading Zero from string #822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tsonevn opened this issue May 26, 2017 · 2 comments
Closed

Label, Button and Span text removing leading Zero from string #822

tsonevn opened this issue May 26, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@tsonevn
Copy link
Contributor

tsonevn commented May 26, 2017

The leading 0 in the Label, Button or Span, while using FormattedText will be removed.
For example, if we try to display 016 the result will be 16.
The similar behavior could be reproduced with the attached sample project.
Archive.zip

@tsonevn tsonevn added the bug label May 26, 2017
@rrjohnson85
Copy link

For what is is worth, the following elements all render 1 instead of the specified text of 00001:

<Label text="00001"></Label>
<TextField text="00001"></TextField>
<Button text="00001"></Button>

@sis0k0 sis0k0 self-assigned this Jun 8, 2017
@sis0k0 sis0k0 added this to the 3.1 milestone Jun 8, 2017
@sis0k0
Copy link
Contributor

sis0k0 commented Jun 8, 2017

fixed with #806
It's available if using next tag and will be released as part of NativeScript Angular 3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants