spacemonkd commented on code in PR #9865:
URL: https://github.com/apache/ozone/pull/9865#discussion_r2956056604


##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/components/select/multiSelect.tsx:
##########
@@ -98,27 +147,162 @@ const MultiSelect: React.FC<MultiSelectProps> = ({
         {isDisabled
           ? placeholder
           : `${placeholder}: ${selected.length} selected`
-}
+        }
       </components.ValueContainer>
     );
   };
 
-  const finalStyles = {...selectStyles, ...style ?? {}}
+  // ── Custom Input override (search mode only) ─────────────────────────────
+  // React-select v3's onInputBlur steals focus back to its hidden input 
whenever
+  // a child element gains focus.  By intercepting onBlur here we suppress that
+  // call while the search box is active, preventing the dropdown from closing.
+  const InputComponent = React.useMemo(

Review Comment:
   Here also we can avoid useMemo



-- 
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]

Reply via email to