From 4ed223d06d8b3f788f703efcee26e1fa9b35369f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Airaud?= Date: Tue, 11 Apr 2023 22:07:55 +0200 Subject: [PATCH 1/2] [forms] Remove Submit type This was not properly supported (Not displayed correctly). This also does not show to be really useful, and redundant with Button component. This fixes Issue #12. --- .../src/component/form/form_control.rs | 46 +++++++++---------- .../src/component/form/form_type.rs | 6 +-- 2 files changed, 24 insertions(+), 28 deletions(-) diff --git a/packages/yew-bootstrap/src/component/form/form_control.rs b/packages/yew-bootstrap/src/component/form/form_control.rs index af3f3f7..3b04b2b 100644 --- a/packages/yew-bootstrap/src/component/form/form_control.rs +++ b/packages/yew-bootstrap/src/component/form/form_control.rs @@ -123,8 +123,8 @@ where T: std::fmt::Display { /// use yew_bootstrap::component::form::*; /// fn test() -> Html { /// html! { -/// Html { /// html! { -/// /// } @@ -164,17 +164,17 @@ where T: std::fmt::Display { /// use yew_bootstrap::component::form::*; /// fn test() -> Html { /// html! { -/// /// } /// } @@ -187,13 +187,13 @@ where T: std::fmt::Display { /// use yew_bootstrap::component::form::*; /// fn test() -> Html { /// html! { -/// /// @@ -354,11 +354,11 @@ pub fn FormControl(props: &FormControlProps) -> Html {
{ label_before }