Skip to content

MaxLength property of TextView is not respected by the initial load of a page if the TextView has already set text in XML or from code behind #4321

@SvetoslavTsenov

Description

@SvetoslavTsenov

Steps to reproduce:

  1. Set maxLength of a TextView to 3;
  2. Set text of the TextView in ( xml or from code behind ) larger than 3.
    The result is that the text is not limited and remains longer that 3 symbols.
    Example to reproduce the issue: https://github.com/NativeScript/NativeScript/blob/master/apps/app/ui-tests-app/text-field/max-length.xml
    and
    https://github.com/NativeScript/NativeScript/blob/master/apps/app/ui-tests-app/text-field/max-length.ts

Please have in mind that this behaviour could be reproduced only with code which should be initiated by a developer.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions