Skip to content

bug(mat-timepicker): Timepicker not affected by scroll if parent has overflow auto #30586

Closed
@stephanruttloff

Description

@stephanruttloff

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

The timepicker does not scroll as expected if the parent element has overflow: auto but stays in place. Scroll strategies are not working either.

Reproduction

StackBlitz link: https://stackblitz.com/edit/timepicker-scroll-issue-demontration
Steps to reproduce:

  1. open the timepicker
  2. scroll the parent element

Expected Behavior

The timepicker should either close itself, scroll with the containing element or block the scroll (like the datepicker).

Actual Behavior

The timepicker floats over the containing element and stays in place while the containing element scrolls beneath it.

Environment

  • Angular: 19.2.0
  • CDK/Material: 19.2.1
  • Browser(s): Chrome, Firefox
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions