close modals when bluring (dates and search hints) (#1294)

When clicking outside the search hints or date modal, the modals close to prevent them appearing ontop of other modals when you click results

<img width="2168" height="1222" alt="Screenshot 2025-10-24 at 11 07 49 AM" src="https://github.com/user-attachments/assets/c930919a-7d91-420d-be46-1db5ca35c2de" />
<img width="1004" height="866" alt="Screenshot 2025-10-24 at 11 07 52 AM" src="https://github.com/user-attachments/assets/8969bc7d-2655-4a1d-8a34-1f301401edf8" />

Fixes HDX-2643
This commit is contained in:
Brandon Pereira 2025-10-27 19:55:39 +01:00 committed by GitHub
parent 431a9f01f3
commit 757196f2e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
"@hyperdx/app": patch
---
close modals when bluring (dates and search hints)

View file

@ -860,7 +860,6 @@ export const RawLogTable = memo(
[styles.isTruncated]: !wrapLinesEnabled,
})}
onClick={e => {
e.stopPropagation();
_onRowExpandClick(row.original);
}}
aria-label="View details for log entry"

View file

@ -185,7 +185,6 @@ export const TimePicker = ({
return (
<Popover
position="bottom-start"
closeOnClickOutside={false}
closeOnEscape
opened={opened}
onClose={close}