-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: weird scroll behaviour in AccountTypeNetworkSearch #1767
Conversation
* feat: add account redesign * fix: deselect AccountTypeNetworkSearch on click * fix: optional AccountCreateMethodButton.networks prop * fix: include nativetoken symbol in network search * fix: copy feedback * fix: also disable account type picker on second add/watch account page * fix: navigate to correct tab when clicking on `Add Account` breadcrumb * fix: copy feedback * feat: add back button * fix: watched account form spacing * fix: trim account type network search input * fix: account type search field font size
81f7fe7
to
c478796
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🔥
Pushed to minor fixes:
1- Dropdown had a fixed size, when the search result has fewer options the dropdown should be smaller.
2- Searching and then hitting enter caused the app to crash because an empty option is still a default combo box option. Created a handleChange fn for that case, and tidied up side effects inside this fn as well.
Example before the fix:
Screen.Recording.2024-12-30.at.10.37.35.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I originally used
@tanstack/react-virtual
instead of the built-in virtual prop of<Combobox />
because I needed theNetwork | Account Type
header inside of the dropdown list.This PR implements an alternative solution; it uses the built-in virtual prop instead of
@tanstack/react-virtual
, and then implements the header as a faux<ComboboxOption />
.As far as I can tell this fixes the weird scrolling behaviour.