Przeglądaj źródła

Merge pull request #18911 from overleaf/ii-new-project-modal-fix

[web] Allow creating new project by submitting the form with keyboard

GitOrigin-RevId: e04e70a0713299d6d8459755359d16ea7755c67e
ilkin-overleaf 2 lat temu
rodzic
commit
bb2a3b091d

+ 1 - 0
services/web/frontend/js/features/ui/components/ol/ol-form.tsx

@@ -13,6 +13,7 @@ function OLForm(props: OLFormProps) {
     componentClass: rest.as,
     componentClass: rest.as,
     bsClass: rest.className,
     bsClass: rest.className,
     children: rest.children,
     children: rest.children,
+    onSubmit: rest.onSubmit as React.FormEventHandler<BS3Form> | undefined,
     ...bs3Props,
     ...bs3Props,
   }
   }