New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] LinkDisplay: update grid selection before opening the editor #3809
Conversation
onMounted(() => this.urlInput.el?.focus()); | ||
onMounted(() => { | ||
const { col, row } = this.props.cellPosition; | ||
this.env.model.selection.selectCell(col, row); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe select the cell in link_display.ts
before opening the component to avoid modifying the state here, which would trigger a double render?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed :) change made and update the commit message
a5aaf38
to
353da93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Currently, a user can open the link editor of a cell while hovering it but not selectd. This behaviour is counterintuitive as once the link editor is opened, we will close it if we change the selection. This revision ensures that the link editor target and the selection are synchronized upon the initialization of the the former. Task: 3793859
353da93
to
c4cb2fd
Compare
robodoo r+ |
Currently, a user can open the link editor of a cell while hovering it but not selectd. This behaviour is counterintuitive as once the link editor is opened, we will close it if we change the selection. This revision ensures that the link editor target and the selection are synchronized upon the initialization of the the former. closes #3809 Task: 3793859 Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
Currently, a user can open the link editor of a cell while hovering it but not selectd. This behaviour is counterintuitive as once the link editor is opened, we will close it if we change the selection.
This revision ensures that the link editor target and the selection are synchronized upon the initialization of the the former.
Task: 3793859
Description:
description of this task, what is implemented and why it is implemented that way.
Task: : TASK_ID
review checklist