Преглед изворни кода

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 година
родитељ
комит
bb2a3b091d
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      services/web/frontend/js/features/ui/components/ol/ol-form.tsx

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

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