message: fix: only add novalidate attr if the rendered element is form
diff: @@ -53,21 +53,29 @@ export const Form = defineComponent({
  return () => {
  const children = normalizeChildren(ctx, slotProps.value);
  - if (props.as) {
  + if (!props.as) {
  + return children;
  + }
  +
  + // Attributes to add on a native `form` tag
  + const formAttrs =
  + props.as === 'form'
  + ? {
  + // Disables native validation as vee-validate will handle it.
  + novalidate: true,
  + }
  + : {};
  +
  return h(
  props.as,
  {
  - // Disables native validation as vee-validate will handle it.
  - novalidate: true,
  + ...formAttrs,
  ...ctx.attrs,
  onSubmit,
  onReset: handleFormReset,
  },
  children
  );
  - }
  -
  - return children;
  };
  },
  });
  