fix: fix StatefullButton propagation

This commit is contained in:
b0sya 2021-03-16 15:31:31 +03:00
parent 2e1cf62e6f
commit 3e64b5cc4e
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ open class StatefulButton: UIButton {
let shouldPropagateEvent = eventPropagations[state] ?? true
if pointInsideView && touchEventReceiver == nil && !shouldPropagateEvent {
if pointInsideView && touchEventReceiver == nil && !shouldPropagateEvent && !isHidden {
return self // disable propagation
}