#18556·quasar

QTooltip opens when QDialog returns focus to its trigger button after ESC on Chromium

Author: joepvdstaaijCreated Sep 24, 2026Updated Sep 24, 2026
Labelskind/bug 🐞bug/1-repro-availablearea/ui

What happened?

When a QBtn with a QTooltip opens a QDialog, and the dialog is dismissed with ESC, the dialog correctly returns focus to the button, but the button's QTooltip then opens as if the user had focused it. This happens on Chromium, but not on Firefox.

What did you expect to happen?

Focus should still return to the button, but the tooltip should stay closed. Programmatic refocus on dismiss is not the user deliberately focusing the button, so showing the tooltip at that moment adds noise. This is especially noticeable for mouse users, who clicked the button to open the dialog in the first place.

Hovering the button or Tabbing onto it should still show the tooltip as usual.

Reproduction URL

https://stackblitz.com/edit/quasarframework-stackblitz-templates-lcamge9q?file=src%2Fpages%2Findex%2F(index).vue

How to reproduce?

  1. Click the "Click me" button (it has a QTooltip).
  2. The dialog opens.
  3. Press ESC to dismiss the dialog.
  4. Focus returns to the "Open" button, and its tooltip opens.

Flavour

Quasar CLI (@quasar/cli | @quasar/app-vite)

Platforms/Browsers

Google Chrome: Version 153.0.8010.53

Versions

bash
Operating System - Windows_NT(10.0.26200) - win32/x64
Node.js - 24.18.0

Global packages
  NPM - 11.16.0
  yarn - 1.22.22
  pnpm - Not installed
  bun - Not installed
  @quasar/cli - 5.0.8
  @quasar/icongenie - Not installed
  cordova - Not installed

Important local packages
  quasar - 2.32.3 -- Build high-performance Vue.js user interfaces (SPA, PWA, SSR, SSG, Mobile and Desktop) in record time
  @quasar/app-vite - 3.8.4 -- Quasar Framework App CLI with Vite
  @quasar/extras - 2.1.0 -- Quasar Framework fonts, icons and animations
  vue - 3.5.42 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 5.3.1
  pinia - 2.3.1 -- Intuitive, type safe and flexible Store for Vue
  typescript - 6.0.3 -- TypeScript is a language for application scale JavaScript development
  vite - 8.3.0 -- Native-ESM powered web dev build tool
  rolldown - 1.2.8 -- Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.

Quasar App Extensions
  @quasar/quasar-app-extension-testing-e2e-cypress - 7.0.0 -- A Quasar App Extension for Cypress e2e
  @quasar/quasar-app-extension-testing-unit-vitest - 3.0.0 -- A Quasar App Extension for running tests with Vitest

Relevant log output

bash

Additional context

  • Adding no-refocus to the QDialog avoids the tooltip, but it also removes the focus return, which is valuable for keyboard and screen-reader users. It would be better to keep the refocus and not have the tooltip react to it.
  • Showing the tooltip when the user focuses the button with Tab makes sense (WAI-ARIA tooltip pattern). The issue is only with focus that QDialog restores itself.
  • Possibly related to the recent portal refocus work (commit 4c407da)