bug(timepicker): Multiple overlays and host already has a portal attached #30637
Labels
area: material/timepicker
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Clicking outside a
Timepicker
enclosed by aMatFormField
causes an error and multipleTimepicker
overlays.Reproduction
Error "Host already has a portal attached"
StackBlitz link: https://stackblitz.com/edit/components-issue-starter-v6k1y4ci?file=src%2Fmain.ts
Steps to reproduce:
Timepicker
input (overlay should open upwards)Timepicker
. Just right below theMatFormField
where hints and errors (would) appearMultiple overlays
Steps to reproduce:
Timepicker
input (overlay should open upwards)Timepicker
. Just right below theMatFormField
where hints and errors (would) appearTimepicker
overlays(no idea how to reproduce this behavior in StackBlitz/local)
Code for reproduction
Expected Behavior
Timepicker
overlaysActual Behavior
Timepicker
overlays (at leat at https://material.angular.io/components/timepicker/examples)Environment
The text was updated successfully, but these errors were encountered: