story:ONEAPP-6315: selectable update on switch change

This commit is contained in:
vasavk 2024-02-13 22:17:37 +05:30
parent d07c7c47e0
commit c8de65f16f

View File

@ -120,13 +120,7 @@ class ButtonIconViewController: BaseViewController<ButtonIcon> {
selectableSwitch.onChange = { [weak self] sender in
guard let self else { return }
if sender.isOn {
self.component.onClick = { _ in
self.component.selectable = !self.component.selectable
}
} else {
self.component.onClick = nil
}
self.component.selectable = !self.component.selectable
}
floating.onChange = { [weak self] sender in