fix: When hovering Drill By the dashboard is scrolled to the top (#30073)

This commit is contained in:
Michael S. Molina 2024-08-30 15:27:43 -03:00 committed by GitHub
parent 103cd3d6f3
commit 548d543efe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ export const DrillByMenuItems = ({
useEffect(() => {
if (open) {
ref.current?.input.focus();
ref.current?.input.focus({ preventScroll: true });
} else {
// Reset search input when menu is closed
ref.current?.setValue('');