Removed will_umount from components

This commit is contained in:
veeso
2021-03-09 08:54:24 +01:00
parent 7b92bd22e7
commit 3aed691cb8
8 changed files with 0 additions and 83 deletions

View File

@@ -154,15 +154,6 @@ impl Component for ProgressBar {
// -- events
/// ### should_umount
///
/// The component must provide to the supervisor whether it should be umounted (destroyed)
/// This makes sense to be called after an `on` or after an `update`, where the states changes.
/// Always false for this component
fn should_umount(&self) -> bool {
false
}
/// ### blur
///
/// Blur component
@@ -202,8 +193,6 @@ mod tests {
assert_eq!(component.states.focus, true);
component.blur();
assert_eq!(component.states.focus, false);
// Should umount
assert_eq!(component.should_umount(), false);
// Get value
assert_eq!(component.get_value(), Payload::None);
// Render