Skip to content

Binding is not working during creation #2064

@olegtoker

Description

@olegtoker

Hi.

I am trying to create custom input component.
The component has "current" property for his value.
The value can change by editing the input element of the component or by receiving new value directly via "current".
There is a validation invoked on the new input and in case the validation pass, the value is accepted, and if not the value is reverted back.

In the jsfiddle https://jsfiddle.net/df1L8zez/
"in" property of main is bind to "current" of the InputComponent, but the binding is not working upon creation( The values are different).

It looks like a bug for me, since synchronization is not reflected

If input will change to valid, the sync will occur.
If parsing input will move to ready, instead of created, the sync, also works.
It looks like the issue is non syncing value in created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions