We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0772dd commit 4b7cb33Copy full SHA for 4b7cb33
package.json
@@ -48,7 +48,7 @@
48
"rc-motion": "^2.0.1",
49
"rc-trigger": "^5.0.4",
50
"rc-util": "^5.0.1",
51
- "rc-virtual-list": "^3.0.3",
+ "rc-virtual-list": "^3.2.0",
52
"warning": "^4.0.3"
53
},
54
"devDependencies": {
src/OptionList.tsx
@@ -154,6 +154,11 @@ const OptionList: React.RefForwardingComponent<
154
}
155
});
156
157
+ // Force trigger scrollbar visible when open
158
+ if (open) {
159
+ listRef.current?.scrollTo(undefined);
160
+ }
161
+
162
return () => clearTimeout(timeoutId);
163
}, [open]);
164
0 commit comments