odoo/o-spreadsheet#6145

Created by BI, Adrien Minne (adrm)
Merged at e6c1b4fd62f8e2ce3ef7e4074079c12df83ce5ce

Statuses:

label
odoo:master-onclick-parasitic-render-adrm
head
cbf59c1796bbf24e2f8f1e9046790c8bd5c7a478
merged
8 months ago by BI, Rémi Rahir (rar)
odoo/o-spreadsheet
saas-18.3 #6145
saas-18.4
19.0
saas-19.1
master #6261

[FIX] spreadsheet: parasitic render at every click

Description

Since the topbar refactor, a new render is triggered at every single click event, no matter where we click. This breaks every input with t-att-value, their content is reset at each click.

Task: 4737827

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