Skip to content

Error in console if @Input() code not null #21

Closed
@almax1989

Description

@almax1989

If you pass the default code, for example 1234, there is an error in the console.
Although the input continues to work.

<code-input [codeLength]="4"
[code]="1234"
[isFocusingOnLastByClickIfFilled]="true"
(codeChanged)="onCodeChanged($event)"
(codeCompleted)="onCodeCompleted($event)"

core.js:5973 ERROR Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value for 'empty': 'true'. Current value: 'false'.
at throwErrorIfNoChangesMode (core.js:6506)
at bindingUpdated (core.js:12593)
at checkStylingProperty (core.js:16424)
at Module.ɵɵclassProp (core.js:16332)
at CodeInputComponent_span_0_Template (angular-code-input.js:25)
at executeTemplate (core.js:9269)
at refreshView (core.js:9138)
at refreshEmbeddedViews (core.js:10245)
at refreshView (core.js:9162)
at refreshComponent (core.js:10291)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions