Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dropdown): prevent null reference errors on dynamic positioning
Add a guard clause in the positionElement function to check for null before accessing wrapperRef.current properties. This prevents runtime errors related to attempting to access properties on null when the dropdown component mounts or updates under certain conditions. Solves Sentry errors "Cannot read properties of null (reading lastElementChild)" and "null is not an object (evaluating r.lastElementChild)".
- Loading branch information