Skip to content

bug(overlay): Weird tooltip issue with the new popover overlay. #32747

Open

Description

@laliconfigcat

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

v20

Description

We detected a weird issue with tooltips regarding the popover introduced in v21.
When I put a tooltip on a mat-select, hover over the mat-select, the tooltip is shown. Then I open the mat select and move out my mouse from the browser and bring the mouse back to the browser, the tooltip is shown no matter where i am hovering on with my mouse.
Usually, it is solved after the mat select is closed and opened, then i cannot repro anymore.
But reloading the page and doing it the first time is usually a good repro for the issue.

I'm not sure if I could explain the repro correctly, so here is a short gif:
Image

I scrolled through issues that can be related to my issue, and found this one: #32642
Turning off the new popover with
{ provide: OVERLAY_DEFAULT_CONFIG, useValue: { usePopover: false } }, solves the issue.
I cannot reproduce it anymore with usePopover: false.

Reproduction

StackBlitz link: https://stackblitz.com/edit/stackblitz-starters-3qpcms44?file=package.json,src%2Fmain.ts
Steps to reproduce:

  1. Open the page the first time
  2. Hover over the mat select
  3. Open the mat select
  4. Move the mouse outside of the browser
  5. Bring back the mouse
  6. The tooltip will be shown no matter where i hover over on the page

Expected Behavior

The tooltip should not be shown everywhere.

Actual Behavior

The tooltip is shown everywhere.

Environment

  • Angular: v21.1.2
  • CDK/Material: v21.1.2
  • Browser(s): Chrome latest
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Activity

  1. crisbeto commented on Feb 17, 2026

    @crisbeto
    Member

    I think this is happening because the overlay is now inside the select so technically hovering over it is the same as hovering on the trigger.

  2. laliconfigcat commented on Feb 17, 2026

    @laliconfigcat
    ContributorAuthor

    I personally like much better the new overlay approach - it is much easier to apply css rules to the overlay this way. So thank you for making this change!

    My issue is that I can hover over any place in my web app - not only the select or around the select - and the tooltip becomes visible. And it is strange that it is only an issue after the mouse leaves the web app/browser and returns.
    Of course, this can be an edge case. But we are using this web app in a Jira Plugin/Trello Power-up. And the problem is that in these places my web app is loaded in an iframe inside trello/jira tickets, and in this context it is pretty easy to run into this issue. The stackblitz is a great example for this - it behaves exactly the same way.

  3. laliconfigcat commented on Jul 17, 2026

    @laliconfigcat
    ContributorAuthor

    Hello @crisbeto ,

    Do you have any updates regarding this issue? It would be awesome to switch to the modern overlay approach.

    Thanks!

  4. pandikapinata commented on Aug 22, 2026

    @pandikapinata

    hi @laliconfigcat @crisbeto ,

    I looked into this and found this: when the select panel is open, its backdrop is actually placed inside the <mat-select> element in the DOM, not next to it

    Image

    because of that, hovering anywhere on the page while the panel is open makes the browser think you're hovering the select itself so the tooltip shows up even when your mouse isn't near it

    I have a fix in this PR #33717, please help review, first time contributing open source project
    thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions