Can't manually set type="submit" on the button since type prop is being set for something else. This is not ideal since attrs should be treated as attrs. You can do something like v-bind="$attrs" but then type is meant for something else that is reset, submit, button. But this is not worth changing type prop since it would be breaking change.
I would recommend having nativeType as well as support for attrs with v-bind="$attrs" in this component, since it's a basic form level component.
Type of Issue
Expected Behavior
Current Behavior
Possible Solution
Add a new prop for now nativeType.
But when major release is done, remove type and rename it as something else so that attrs and props don't clash.
Steps to Reproduce
Context (Environment)
http://reiyoshizawa.com/vue-listeners-attrs/
Detailed Description
Possible Implementation
http://reiyoshizawa.com/vue-listeners-attrs/
Can't manually set type="submit" on the button since type prop is being set for something else. This is not ideal since attrs should be treated as attrs. You can do something like
v-bind="$attrs"but then type is meant for something else that isreset, submit, button. But this is not worth changing type prop since it would be breaking change.I would recommend having
nativeTypeas well as support for attrs with v-bind="$attrs" in this component, since it's a basic form level component.Type of Issue
Expected Behavior
Current Behavior
Possible Solution
Add a new prop for now
nativeType.But when major release is done, remove
typeand rename it as something else so that attrs and props don't clash.Steps to Reproduce
Context (Environment)
http://reiyoshizawa.com/vue-listeners-attrs/
Detailed Description
Possible Implementation
http://reiyoshizawa.com/vue-listeners-attrs/