PropsBuilder: use from trait

This commit is contained in:
veeso
2021-03-06 20:15:23 +01:00
parent 5c9cb7eece
commit db0c54b781
4 changed files with 10 additions and 13 deletions

View File

@@ -201,7 +201,7 @@ impl Component for FileList {
/// This returns a prop builder in order to make easier to create
/// new properties for the element.
fn get_props(&self) -> PropsBuilder {
PropsBuilder::from_props(&self.props)
PropsBuilder::from(self.props.clone())
}
/// ### on