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
What is the use-case or motivation for changing an existing behavior?
My options are the result of an ajax request. When they arrive, I want filteredOptions to be recalculated and the autocomplete to reflect it. filteredOptions are recalculated, but the autocomplete panel doesn't show itself.
Other information
If filteredOptions uses .startWith(x) where x.length > 0, it works as expected. It only fails if the initial value is an empty array.
The text was updated successfully, but these errors were encountered:
… detection
Fixes an issue that prevented the autocomplete panel from being shown if the options are initialized with a delay in a component that has `OnPush` change detection.
Fixesangular#3955.
Bug, feature request, or proposal:
Bug
What is the expected behavior?
If the autocomplete's
md-options
length changes from 0 to n due to options arriving asynchronously, the panel should display even with OnPush.What is the current behavior?
The panel does not show itself until the user types or refocuses the input.
What are the steps to reproduce?
http://plnkr.co/edit/fWoO47LDbCZFJ9i887jU?p=preview
What is the use-case or motivation for changing an existing behavior?
My
options
are the result of an ajax request. When they arrive, I wantfilteredOptions
to be recalculated and the autocomplete to reflect it.filteredOptions
are recalculated, but the autocomplete panel doesn't show itself.Other information
If
filteredOptions
uses.startWith(x)
wherex.length > 0
, it works as expected. It only fails if the initial value is an empty array.The text was updated successfully, but these errors were encountered: