msyavuz commented on code in PR #30730: URL: https://github.com/apache/superset/pull/30730#discussion_r1821033597
########## superset-frontend/src/components/Chart/DrillBy/DrillByMenuItems.tsx: ########## @@ -138,10 +138,9 @@ export const DrillByMenuItems = ({ useEffect(() => { if (open) { - ref.current?.input.focus({ preventScroll: true }); + ref.current?.input?.focus({ preventScroll: true }); } else { // Reset search input when menu is closed - ref.current?.setValue(''); Review Comment: There is no setValue method for Input after the migration so this would give type errors. Binding the value to the already kept state makes this obsolete -- 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: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org