diff --git a/src/components/timeline.jsx b/src/components/timeline.jsx index 6fe1273..13f8a59 100644 --- a/src/components/timeline.jsx +++ b/src/components/timeline.jsx @@ -209,8 +209,8 @@ function Timeline({ const oRef = useHotkeys(['enter', 'o'], () => { // open active status - const activeItem = document.activeElement.closest(itemsSelector); - if (activeItem) { + const activeItem = document.activeElement; + if (activeItem?.matches(itemsSelector)) { activeItem.click(); } });