rusackas commented on a change in pull request #14106:
URL: https://github.com/apache/superset/pull/14106#discussion_r618925552



##########
File path: superset-frontend/src/explore/components/controls/VizTypeControl.jsx
##########
@@ -119,7 +120,7 @@ const VizTypeControl = props => {
 
   useEffect(() => {
     if (showModal) {
-      searchRef?.current?.focus();
+      setTimeout(() => searchRef?.current?.focus(), 200);

Review comment:
       Curious about the need for the timeout, and if the 200 is based on 
anything (e.g. some transition timing) or if it's just a guess at some 
loading/drawing/mounting time.




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

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