odoo/o-spreadsheet#8844

Created by BI, Rémi Rahir (rar)

Blocked

label
odoo:master-fix-focus-loss-rar
head
213e6a83eab915bb03af9eb249335e5bbcfba821
odoo/o-spreadsheet
master #8844 missing r+

[FIX] Figure: only focus when the selected figure changes

The condition of the useEffect to re-focus a figure were removed by mistake. This meant that every render, if there was a selected figure, its DOM element would be automatically focus.

There was a race condition with the component SelectionInput that sometimes let the latter have the focus, sometimes not, which lead to the weird behaviour described in the task:

=> The first press deletes the value, the second deletes the chart

task-6267606

Description:

description of this task, what is implemented and why it is implemented that way.

Task: TASK_ID

review checklist