Skip to content

types(runtime-core): HTMLAttributes should extends Events #1941

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

Merged
merged 2 commits into from
Aug 25, 2020

Conversation

Amour1688
Copy link
Member

interface AProps extends HTMLAttributes {

}

const A = (props: AProps) => {
  return <span {...props} />
}

<A onClick={xx} />

It's not necessary to define onClick or onXxx again.

@Amour1688 Amour1688 changed the title fix: HTMLAttributes should extends Events types(runtime-core): HTMLAttributes should extends Events Aug 25, 2020
@yyx990803 yyx990803 merged commit a47626a into vuejs:master Aug 25, 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.

2 participants