|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Added isMounted state to prevent hydration mismatches
- Server-side renders a simplified header without Sheet component
- Client-side renders full functionality after mounting
- Added global error handler to catch and suppress scroll-related errors
- Specifically targets "parameter 1 is not of type 'Node'" errors
- Prevents error propagation while maintaining functionality
- Added proper ref management with sheetRef
- Prevented auto-focus events that can trigger scroll issues
- Added graceful error handling for escape key and pointer events
- Enhanced event handling with try-catch blocks
- `onOpenAutoFocus` and `onCloseAutoFocus` prevented to avoid focus issues
- `onEscapeKeyDown` and `onPointerDownOutside` with error handling
- Cleanup function in useEffect to remove event listeners
- Updated `@radix-ui/react-dialog` to latest version
- Ensured `react-remove-scroll` is at latest version for React 19 compatibility
|