gabotorresruiz commented on code in PR #35336:
URL: https://github.com/apache/superset/pull/35336#discussion_r2395369304


##########
superset-frontend/src/dashboard/components/gridComponents/Markdown/Markdown.jsx:
##########
@@ -268,6 +269,13 @@ class Markdown extends PureComponent {
     }
   }
 
+  shouldFocusMarkdown(event, container) {
+    if (container?.contains(event.target)) return true;
+    if (event.target.closest?.('.menu-item')) return true;

Review Comment:
   This is a nice catch, and actually checking this, I've noticed that I wasn't 
considering the case where multiple markdown elements were preset. So now, I've 
implemented a better solution using `refs`
   
   Thanks!



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