Prevent scrollIntoView when component is mounted
Currently when component is mounted it triggers the first item to be selected by default, followed by that item being scrolled into view. I would like an option to disable the scroll, when no user interaction has occurred, yet.
This issue could be solved via #171, but a ideal solution would be a way to just disable the scroll on mount, and not being forced to have nothing as the selection.
https://github.com/pacocoursey/cmdk/blob/9827edf89fc663e24188f9d715a0dca01a736d6d/cmdk/src/index.tsx#L230-L232
this is the code triggering the scroll
This scroll might also be problematic when zoom >100% Example here:
- zoom in
- open command
- view is scroll unexpectedly
- depending on the level of zoom, the offset is more or less problematic
https://github.com/user-attachments/assets/38aa3f63-29e0-4547-ac72-e1d0c386108f