We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在 form 中使用 <button type="reset">rest</button> 浏览器在清空 input 等表单的 value 的时候,观察 vue 中的 data 未响应此变化。
<button type="reset">rest</button>
作为浏览器的基础行为,是否可以考虑在 reset 后,也将表单上附加的 v-model 的 data 给 reset 掉?
The text was updated successfully, but these errors were encountered:
Hi!
Please follow the Issue Reporting Guidelines. Make sure to ask questions on the forums or the gitter chat. We keep questions out of issues 😄
About the question, you can handle the reset event like this. Hope this helps!
Sorry, something went wrong.
thanks, I konw that way can handle the reset event, but can not auto rest v-model
v-model
You can write a directive that listens to the reset event and finds and triggers input & change on every input element inside the form.
reset
input
change
No branches or pull requests
在 form 中使用
<button type="reset">rest</button>
浏览器在清空 input 等表单的 value 的时候,观察 vue 中的 data 未响应此变化。
作为浏览器的基础行为,是否可以考虑在 reset 后,也将表单上附加的 v-model 的 data 给 reset 掉?
The text was updated successfully, but these errors were encountered: