Skip to content

Reactive Form : NgModel delay when encapsulating a Textfield #1219

Open
@jolafrite

Description

@jolafrite

I created my own Textfield component that extends the nativescript TextValueAccessor class to add some extra functionalities.
But when using it, I get a difference between what I type and the ngModel value.
If I type 1234 then the ngModel value will be 123.

Here a small demo : https://play.nativescript.org/?template=play-ng&id=ioUGxI&v=7

When I simplify the BaseValueAccessor onChange method to remove the debounce and directly call fn(arg) then everything works properly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions