Fix value of the HtmlSelect of the ProgressBar example (#148)

This commit is contained in:
Yohan Boogaert 2022-09-12 10:06:56 +02:00 committed by GitHub
parent a5851413a6
commit 25950d7e7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,6 +89,7 @@ crate::build_example_prop_component! {
(Some(Intent::Warning), "Warning".to_string()), (Some(Intent::Warning), "Warning".to_string()),
(Some(Intent::Danger), "Danger".to_string()), (Some(Intent::Danger), "Danger".to_string()),
]} ]}
value={self.example_props.intent}
onchange={self.update_props(ctx, |props, intent| ExampleProps { onchange={self.update_props(ctx, |props, intent| ExampleProps {
intent, intent,
..props ..props