You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My page has a form that contains a single Select element (in my case a shadcn/ui-based Select on top of Radix). I noticed that Conform seemingly causes the Select element to scroll into the view once the fired action finishes. I wasn't able to replicate this behaviour without Conform so I assume it's not necessarily an upstream issue with Radix. This unexpected behavior is only occurring in Safari but not in Chrome-based browsers.
Attached to this bug report are two screen captures: the first will show that submitting the form will return a fake error at which point the select will jump into the view and the scroll position will be lost. The second video shows the behaviour of the form after I have removed the Select from the page. You will notice that submitting the form will not cause the page to jump to the Select.
Do note that even dropping in a simple Select as seen in the shadcn/ui docs such as the following will still cause the unexpected behaviour:
import{Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectTrigger,SelectValue,}from"@/components/ui/select"<Select><SelectTriggerclassName="w-[180px]"><SelectValueplaceholder="Select a fruit"/></SelectTrigger><SelectContent><SelectGroup><SelectLabel>Fruits</SelectLabel><SelectItemvalue="apple">Apple</SelectItem><SelectItemvalue="banana">Banana</SelectItem><SelectItemvalue="blueberry">Blueberry</SelectItem><SelectItemvalue="grapes">Grapes</SelectItem><SelectItemvalue="pineapple">Pineapple</SelectItem></SelectGroup></SelectContent></Select>
I'd like to hear whether you can pin-point the issue. That even a simple Select that is not wired up with Conform still causes this behaviour might indicate an upstream issue despite my failed attempts to reproduce it.
I am using Safari Version 17.6 (19618.3.11.11.5) on macOS Sonoma 14.6.1
The text was updated successfully, but these errors were encountered:
Describe the bug and the expected behavior
My page has a form that contains a single Select element (in my case a shadcn/ui-based Select on top of Radix). I noticed that Conform seemingly causes the Select element to scroll into the view once the fired action finishes. I wasn't able to replicate this behaviour without Conform so I assume it's not necessarily an upstream issue with Radix. This unexpected behavior is only occurring in Safari but not in Chrome-based browsers.
Attached to this bug report are two screen captures: the first will show that submitting the form will return a fake error at which point the select will jump into the view and the scroll position will be lost. The second video shows the behaviour of the form after I have removed the Select from the page. You will notice that submitting the form will not cause the page to jump to the Select.
Conform version
v1.2.2
Steps to Reproduce the Bug or Issue
pnpm install
pnpm dev
http://localhost:3000/admin/things
Do note that even dropping in a simple Select as seen in the shadcn/ui docs such as the following will still cause the unexpected behaviour:
What browsers are you seeing the problem on?
Safari
Screenshots or Videos
CleanShot.2024-09-28.at.20.38.49.mp4
CleanShot.2024-09-28.at.20.39.40.mp4
Additional context
I'd like to hear whether you can pin-point the issue. That even a simple Select that is not wired up with Conform still causes this behaviour might indicate an upstream issue despite my failed attempts to reproduce it.
I am using Safari Version 17.6 (19618.3.11.11.5) on macOS Sonoma 14.6.1
The text was updated successfully, but these errors were encountered: