Skip to content

Commit

Permalink
fix: re-use label on text input
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Jul 20, 2024
1 parent c9af653 commit 946db01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/cassette/src/components/text_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ impl ComponentRenderer<Spec> for State {
let label = label.map(|label| html! { <Content>{ label }</Content> });
let body = html! {
<TextInputGroup style="padding: 4px;">
{ label }
<TextInputGroupMain style="margin-right: 4px;"
autofocus=true
{ onchange }
Expand Down

0 comments on commit 946db01

Please sign in to comment.