Hi there,
I’m currently receiving the error: Uncaught TypeError: Cannot read properties of undefined (reading ‘dataset’) on chrome Devtools and would like to fix it.
Link to shop: https://skynetmed.com/
Link to product where the issue popped up: https://skynetmed.com/products/4-wheel-steel-rollator-w-8-casters-basket-loop-red
Thank you in advance for your assistance.
Hello @BitByBitCoin ,
The error you are seeing, “Cannot read property ‘dataset’ of undefined”, occurs because the event.detail.currentElement object is undefined or null, and you are trying to access its dataset property.
To fix this error, you will need to make sure that the event.detail.currentElement object is properly initialized and contains the dataset property before trying to access it.