DioxusLabs / DioxusLabs/dioxus

Add `relatedTarget` property to `FocusEvent`

Open
#2,858 2 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.