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

What is a FormEvent? #148

Closed
bartenra opened this issue Apr 22, 2021 · 4 comments
Closed

What is a FormEvent? #148

bartenra opened this issue Apr 22, 2021 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@bartenra
Copy link

I have this input element:

<input
  name="description"
  type="text"
  :value="getFormDataSelectedLang('description')"
  autocomplete="off"
  @input="handleInput($event, 'description')"
/>

And a method that receives an Event. To my knowledge this is the only type for Vue events.

But I am getting:

Argument of type 'FormEvent<HTMLInputElement>' is not assignable to parameter of type 'Event'.ts(2345)
@johnsoncodehk
Copy link
Member

Seems similar problem to: #111

@johnsoncodehk johnsoncodehk added the question Further information is requested label Apr 22, 2021
@bartenra
Copy link
Author

Ah yeah I recently started using Storybook, which pulls in React as a dependency. :-/

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Apr 22, 2021

So I think you have solved it? If not, just let me know.

@johnsoncodehk
Copy link
Member

Duplicate of #111

@johnsoncodehk johnsoncodehk marked this as a duplicate of #111 Apr 22, 2021
@johnsoncodehk johnsoncodehk added duplicate This issue or pull request already exists and removed question Further information is requested labels Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants