msyavuz commented on code in PR #35487:
URL: https://github.com/apache/superset/pull/35487#discussion_r2402922924
##########
superset-frontend/packages/superset-ui-core/src/components/Select/Select.tsx:
##########
@@ -143,6 +144,32 @@ const Select = forwardRef(
: 1
: (propsMaxTagCount ?? MAX_TAG_COUNT);
+ // Prevent maxTagCount change during click events to avoid click target
disappearing
+ const [stableMaxTagCount, setStableMaxTagCount] = useState(maxTagCount);
+ const isOpeningRef = useRef(false);
+
+ useEffect(() => {
Review Comment:
Good suggestion, unfortunately it does not work with useLayoutEffect
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]