diff --git a/Source/Core/BaseRow.swift b/Source/Core/BaseRow.swift index ee60820f..ab5da1a6 100644 --- a/Source/Core/BaseRow.swift +++ b/Source/Core/BaseRow.swift @@ -146,7 +146,19 @@ open class BaseRow: BaseRowType { return IndexPath(row: rowIndex, section: sectionIndex) } - var hiddenCache = false + var hiddenCache = false { + didSet { + guard let t = tag, + let form = section?.form else { return } + + if let rowObservers = form.rowObservers[t]?[.hidden] { + for rowObserver in rowObservers { + (rowObserver as? Hidable)?.evaluateHidden() + } + } + } + } + var disabledCache = false { willSet { if newValue && !disabledCache {