Skip to content
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

ExpressionChanged error is thrown when Dialog is opened and floating labeled textbox is auto focused #3511

Open
mbechev opened this issue Nov 22, 2021 · 0 comments

Comments

@mbechev
Copy link
Contributor

mbechev commented Nov 22, 2021

Describe the bug
Focusing a floating labeled TextBox component when the Dialog is opened, using autoFocusedElement option, cause an ExpressionChangedAfterItHasBeenCheckedError error:

image

The issue seems to be caused by the FloatingLabel component and the way it attaches the k-state-focus class.

To Reproduce
Open Dialog

https://stackblitz.com/edit/angular-2fng8f-zmmwjb?file=app/app.component.ts

Expected behavior
There should be no errors in this scenario.

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

No branches or pull requests

3 participants