p-dropdown only sets filled
on click, not on select (doesn't work with keyboard)
#8059
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://stackblitz.com/edit/github-xvghjz
Current behavior
If you click an option in the p-dropdown, it will set
filled = true
, however, if you select an option by any other means (programmatically, or with a user keyboard),filled
is not changed.Expected behavior
filled
should be set totrue
no matter how the value gets set, not just by clicking an item.Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
If using a Material-like theme (like Ultima) which uses floating labels, if a user uses their keyboard to select an option, the label never moves out of the way of the value, so the two will overlap each other in the component.
Please tell us about your environment:
Operating system: MacOS
IDE: VS Code
package manager: NPM
HTTP server: ng serve
Angular version: 7.X
still an issue in 8 (see stackblitz)
PrimeNG version: 7.X
still an issue in 8 (see stackblitz)
Browser: all
Language: all
The text was updated successfully, but these errors were encountered: