Open nareg23 opened 2 years ago
I have the same error and I can't solve that yet.
Happening the same thing with me. Using NextJs
same error, any update? using react
I found a workaround which is to listen to the containers used by the library directly from the DOM. Here you have what I have done. It is important to have the defaultPrevent property of the Stories object disabled.
useEffect(() => {
const panel = document.querySelectorAll('#root > div > div > div > div:nth-child(3) > div')
if (panel === null) return
const panelLeft = panel.item(0)
const panelRight = panel.item(1)
if (!isListening) {
isListening = true
} else {
return
}
panelLeft.addEventListener('click', (e) => handleClick(e, ClickEnum.left))
panelRight.addEventListener('click', (e) => handleClick(e, ClickEnum.right))
return () => {
panelLeft.removeEventListener('click', (e) => handleClick(e, ClickEnum.left))
panelRight.removeEventListener('click', (e) => handleClick(e, ClickEnum.right))
}
}, [])
Didn't work for me, could you share a complete snippet of code
Didn't work for me, could you share a complete snippet of code
Using react v18.2.0
¿Solutions? ¿Alternatives?
Hello, maybe my solution will help someone:
useEffect(() => {
document.body.addEventListener(
'touchstart',
function (e) {
e.stopPropagation();
},
{capture: true, passive: false}
);
}, []);
Every time i click on the next /previous story getting this error in the browser console.