Dawn 15.1 Product page jumps down when selecting a different variant on mobile

Dawn 15.1 Product page jumps down when selecting a different variant on mobile

Artey
Tourist
12 0 5

website: artey.com.au

 

Issue: Page scrolls down to the bottom when selecting a different variant on mobile (does not do it on desktop).

I did a preliminary research and I'm aware this is caused by code snippet scrollIntoView({ behavior: 'smooth' })

However, I have a couple of js and liquid files that have similar code snippets so I do not know which one I should change. Wary of commenting out without understanding the ripple effects. Can anyone help out?

Reply 1 (1)

Small_Task_Help
Shopify Partner
830 27 75

Hi,

Hope following will help

- Use console logs to identify specific file handling variant changes.
- Modify scrollIntoView() behavior only for non-mobile devices.

To Get Shopify Experts Help, E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert Agency
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad