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
I've implemented a custom MatSelect according to the docs. But, if I select and then deselect the options (thus leaving the MatSelect empty) the placeholder only reappears when the component is clicked again.
What is the expected behavior?
Placeholder should stop floating and appear in its starting position.
What is the current behavior?
Placeholder only reappears when I click the component again.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5.2.4, Angular Material 5.2.4, Ubuntu 17.10 and Windows 10, Firefox 58 and Chrome 65; TypeScript 2.7 in my dev machine, not sure which version in Stackbliz
The issue comes from the fact that you've wrapped the select in another component which isn't reacting to all the state changes. You can fix your component by adding this:
Bug, feature request, or proposal:
I've implemented a custom MatSelect according to the docs. But, if I select and then deselect the options (thus leaving the MatSelect empty) the placeholder only reappears when the component is clicked again.
What is the expected behavior?
Placeholder should stop floating and appear in its starting position.
What is the current behavior?
Placeholder only reappears when I click the component again.
What are the steps to reproduce?
Here's a Stackbliz
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5.2.4, Angular Material 5.2.4, Ubuntu 17.10 and Windows 10, Firefox 58 and Chrome 65; TypeScript 2.7 in my dev machine, not sure which version in Stackbliz
Is there anything else we should know?
Already tried the steps in issue #3196
The text was updated successfully, but these errors were encountered: