odoo/o-spreadsheet#7558

Created by fw-bot
Merged at 8722bda5485f54397e02ff9c4782e4feef112f66

Statuses:

label
odoo:master-17.0-tab-navigation-breaks-layout-dhrp-478643-fw
head
b7f77aff9bfcb4f280fcf08b4e64c6fd6c5a2e9c
merged
1 day ago by BI, Dhrutik Patel (dhrp)
odoo/o-spreadsheet
19.0 #7495
master #7558

[FIX] topbar: close font size editor dropdown and focus grid

Description:

Pressing Tab in the font size editor moves focus to the hidden “add more rows” footer (the next focusable element in the DOM). This caused the browser to auto-scroll to the footer while the grid viewport state remained unchanged, making the footer appear to float over the grid.

Now, when the font size editor loses focus (via blur/Tab), it closes its dropdown and redirects focus back to the grid instead of the footer.

Task: 5263792

review checklist

  • [ ] feature is organized in plugin, or UI components
  • [ ] support of duplicate sheet (deep copy)
  • [ ] in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • [ ] in model/UI: ranges are strings (to show the user)
  • [ ] undo-able commands (uses this.history.update)
  • [ ] multiuser-able commands (has inverse commands and transformations where needed)
  • [ ] new/updated/removed commands are documented
  • [ ] exportable in excel
  • [ ] translations (_t("qmsdf %s", abc))
  • [ ] unit tested
  • [ ] clean commented code
  • [ ] track breaking changes
  • [ ] doc is rebuild (npm run doc)
  • [ ] status is correct in Odoo

Forward-Port-Of: #7495