design-system
design-system copied to clipboard
SideSheet scrollbar jumps to top when writing in TextField
Using a multiline TextField in a SideSheet component with a scrollbar will cause the SideSheet scrollbar to jump to the top when editing the TextField.
Repro can be found here: https://codesandbox.io/p/sandbox/laughing-matsumoto-tlx84t?file=%2Fsrc%2FApp.tsx
Click into the linked repro and edit the text in the TextField in the SideSheet. Observe that the scrollbar of the SideSheet jumps to the top.
Expected behavior
Expect the scroll to not jump to the top when editing a TextField.
Specifications
- Version:
@equinor/[email protected]
- Browser:Version 125.0.6422.142 (Official Build) (64-bit)
- OS: Windows 11