Hi,
I'm trying to find a way to set a column cell so that it is not focused when I click outside the scheduler.
Whenever you select a resource column cell it is populated with the b-focused class e.g.
class="b-grid-cell b-resourceinfo-cell swimlane-cell b-focused"
But I can't find a simple way to unfocus that particular cell - calling the deselect methods don't seem to do anything.
Currently I have a workaround to remove the b-focused class
e.g.
const focusedCell = document.querySelector(
'.b-resourceinfo-cell.b-focused'
);
if (focusedCell) {
focusedCell.classList.remove('b-focused');
}
But this doesn't feel like the right way to do it?
Thanks,
Jason