Fix the elevation props in the example (#93)

This commit is contained in:
Yohan Boogaert 2021-03-09 16:25:47 +01:00 committed by GitHub
parent 91183bf07b
commit a85bd29580
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,11 @@ crate::build_example_prop_component! {
(Elevation::Level3, "Level 3".to_string()),
(Elevation::Level4, "Level 4".to_string()),
]}
value=Some(self.props.elevation)
value=self.props.elevation
onchange=self.update_props(|props, elevation| ExampleProps {
elevation,
..props
})
/>
</div>
</div>