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



##########
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:
       BUT... this fixes the auto-focusing of the input when the modal opens, 
and I LOVE it.




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