diff --git a/packages/forms/src/components/form/BInput.astro b/packages/forms/src/components/form/BInput.astro index b9ee1c3..b801ffa 100644 --- a/packages/forms/src/components/form/BInput.astro +++ b/packages/forms/src/components/form/BInput.astro @@ -37,8 +37,8 @@ const inputValue = inputReturnValueAttr(Astro, bind); const allProps = { ...props, ...inputValue, ...componentProps, pattern: pattern?.toString(), ...castProps }; allProps.name = bindCounter + allProps.name; - addOnSubmitClickEvent(onSubmitClick, allProps); + webFormsSettings.haveFileUpload ||= allProps.type === 'file'; const Component = asComponent as any; diff --git a/packages/forms/src/components/form/BSelect.astro b/packages/forms/src/components/form/BSelect.astro index 5fdb2da..fd19a8d 100644 --- a/packages/forms/src/components/form/BSelect.astro +++ b/packages/forms/src/components/form/BSelect.astro @@ -17,6 +17,7 @@ export interface Props