diff --git a/app/assets/javascripts/keyboard_navigation.js b/app/assets/javascripts/keyboard_navigation.js index e76c38692e6..831c52da85f 100644 --- a/app/assets/javascripts/keyboard_navigation.js +++ b/app/assets/javascripts/keyboard_navigation.js @@ -47,7 +47,7 @@ document.addEventListener('turbolinks:load', () => { /* * Trigger the click on the proxy element identified by the attribute. */ - const keydownId = event.target?.dataset?.keydownId; + const keydownId = event.target.dataset.keydownId; if (event.key === 'Enter' && keydownId) { clickElementById(keydownId); }