You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So this is kind of a corner / debatable case. In the plunk forked from the demo page we are using debounceTime(200) which is equivalent to setTimeout when it comes to change detection. Obviously the setTimout wouldn't be picked up by a component using changeDetection: ChangeDetectionStrategy.OnPush and debounceTime(200) falls into the same "non-working" scenario.
We could mark the result window for check when receiving data from the observable stream but I'm not sure we should...
For now the work-around is to either not mark the component as one using OnPush or droop debounceTime. I understand that this is not ideal but I want to sleep on this issue before rushing into any solutions....
Bug description:
When using
changeDetection: ChangeDetectionStrategy.OnPush
, when you type 'a', it dose not show completeWithout
changeDetection: ChangeDetectionStrategy.OnPush
, it shows wellLink to minimally-working plunker that reproduces the issue:
http://plnkr.co/edit/2O0qQXE5c7CqLm5mfukF?p=preview
Version of Angular, ng-bootstrap, and Bootstrap:
The text was updated successfully, but these errors were encountered: