Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix onBlur type definition #351

Merged
merged 1 commit into from
Apr 27, 2020
Merged

fix onBlur type definition #351

merged 1 commit into from
Apr 27, 2020

Conversation

wxjzeke
Copy link
Contributor

@wxjzeke wxjzeke commented Apr 27, 2020

When I use e.relatedTarget
=>
Property 'relatedTarget' does not exist on type 'Event'. TS2339

In practice it is found to be a FocusEvent

onBlur: (e: FocusEvent, core: Core) => void

// lib.dom.d.ts
interface FocusEvent extends UIEvent {
    readonly relatedTarget: EventTarget | null;
}

@JiHong88
Copy link
Owner

Thank you for your contribution!

@JiHong88 JiHong88 merged commit 15c9a6d into JiHong88:master Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants