app: wrap template arguments in braces

To prepare for the migration to yew 1.19
This commit is contained in:
Valentin Tolmer
2023-03-08 14:27:47 +01:00
committed by nitnelave
parent 07523219d1
commit f44e8b7659
19 changed files with 153 additions and 135 deletions

View File

@@ -68,9 +68,9 @@ impl Component for Select {
fn view(&self) -> Html {
html! {
<select class="form-select"
ref=self.node_ref.clone()
disabled=self.props.children.is_empty()
onchange=self.link.callback(SelectMsg::OnSelectChange)>
ref={self.node_ref.clone()}
disabled={self.props.children.is_empty()}
onchange={self.link.callback(SelectMsg::OnSelectChange)}>
{ self.props.children.clone() }
</select>
}
@@ -105,7 +105,7 @@ impl Component for SelectOption {
fn view(&self) -> Html {
html! {
<option value=self.props.value.clone()>
<option value={self.props.value.clone()}>
{&self.props.text}
</option>
}