97 votes
0 answers
javascript - Can no longer scroll with keys unless an element is selected
Solution:
Not really knowing Shopify, I'd suggest usingdocument.activeElement
to log which element has the focus after the page loads.
console.log(document.activeElement);
Starting from there, you can see whether it has any event handlers that stop propagation or if it exists outside the<body>
, which presumably has the keyboard handler(s). Hope this helps.
Undefined asked
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.