Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
useDropZone: Ensure drag event targets HTMLElement (#34272)
Attempts to fix a TypeError that has been logged in the wild but is yet to be reproduced. In production builds, it manifests as `e.dataset is undefined`, pointing to the useDropZone hook. * Don't cast FocusTarget instance to HTMLElement prior to calling isElementInZone. * Perform type validations inside isElementInZone, then cast to HTMLElement.
- Loading branch information