notform 3.0.0-alpha.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -538,6 +538,7 @@ var not_field_default = /* @__PURE__ */ defineComponent({
|
|
|
538
538
|
//#endregion
|
|
539
539
|
//#region src/components/not-form.vue
|
|
540
540
|
var not_form_default = /* @__PURE__ */ defineComponent({
|
|
541
|
+
inheritAttrs: false,
|
|
541
542
|
__name: "not-form",
|
|
542
543
|
props: { form: {
|
|
543
544
|
type: Object,
|
|
@@ -546,7 +547,7 @@ var not_form_default = /* @__PURE__ */ defineComponent({
|
|
|
546
547
|
setup(__props) {
|
|
547
548
|
provideNotFormInstance(__props.form);
|
|
548
549
|
return (_ctx, _cache) => {
|
|
549
|
-
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode("\n Reset is always prevented here, regardless of what (if anything) the\n consumer binds to @reset, since a native reset would otherwise clear\n every input before `values` has a chance to react to it.\n\n Submit is NOT prevented here. `form.submit()` calls `event.preventDefault()`\n itself when it runs, which only happens if the consumer binds @submit to it\n (e.g. `@submit=\"form.submit\"`) — see the NotForm docs for why this matters.\n "), createElementVNode("form", { onReset: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"])) }, [renderSlot(_ctx.$slots, "default")],
|
|
550
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode("\n Reset is always prevented here, regardless of what (if anything) the\n consumer binds to @reset, since a native reset would otherwise clear\n every input before `values` has a chance to react to it.\n\n Submit is NOT prevented here. `form.submit()` calls `event.preventDefault()`\n itself when it runs, which only happens if the consumer binds @submit to it\n (e.g. `@submit=\"form.submit\"`) — see the NotForm docs for why this matters.\n "), createElementVNode("form", mergeProps(_ctx.$attrs, { onReset: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"])) }), [renderSlot(_ctx.$slots, "default")], 16)], 2112);
|
|
550
551
|
};
|
|
551
552
|
}
|
|
552
553
|
});
|