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

Add timeout for changing active status in focus #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cthrax
Copy link

@cthrax cthrax commented Jun 11, 2020

There was a problem if the focus was called during a change detection, that may be an angular bug related to hostbinding, but this fixes the issue
Also update some of the packages and scripts to be able to run them

If you're in the middle of a change detection and you focus, there is an expressionChangedAfterCheck exception. I think this might be related to a possible bug in angular around HostBinding expressions, but I couldn't quite figure out. I know that the HostBinding call was being made over and over on/off/on/off, seemingly part of every change detection, but I could figure out whether that was expected or not. At any rate, I encountered this when opening an ng-bootstrap modal in the onUserchange event and the two setTimeouts fixed that problem. I attempted to use change detection to fix the issue, but as I mentioned, the hostBindings were being changed all the time, so that failed to fix the issue.

There was a problem if the focus was called during a change detection, that may be an angular bug related to hostbinding, but this fixes the issue
Also update some of the packages and scripts to be able to run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants