I had seen that function but not actually tried it - when I call it it doesn't seem to remove the focus from the selected cell unfortunately.
Thanks,
Jason
Re: [VUE 3] Focused cell
Posted: Fri May 26, 2023 5:49 pm
by jbrazier
I have managed to resolve it by setting focus on the time axis cell instead - not sure it's the best approach but it does work
// Set focus on the time-axis cell instead
const cellElement = document.querySelector(
'.b-timeaxis-cell'
) as HTMLElement;
cellElement.click();
cellElement.focus();
Re: [VUE 3] Focused cell
Posted: Fri May 26, 2023 6:35 pm
by marcio
Hey jbrazier,
That approach will work, focusing on another element will solve the issue.