DioxusLabs / DioxusLabs/dioxus
Add `relatedTarget` property to `FocusEvent`
Open
enhancement
html
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## Feature Request
I have a use case when I need to know what element is being focused when another element is being blurred. The stack overflow solution below uses the `relatedTarget` property to do this, however this property isn't exposed by dioxus. Can we get this field?
Stack overflow solution: https://stackoverflow.com/questions/39439115/how-to-execute-click-function-before-the-blur-function/57983847#57983847
`relatedTarget`: https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/relatedTarget
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.