Fix navigation buttons disabled state

This commit is contained in:
Ali
2020-03-02 02:58:39 +04:00
parent 1ad432fd9c
commit 4fd8b81a77
2 changed files with 10 additions and 1 deletions

View File

@@ -283,7 +283,10 @@ private final class NavigationButtonItemNode: ImmediateTextNode {
public var isEnabled: Bool = true {
didSet {
if self.isEnabled != oldValue {
self.attributedText = NSAttributedString(string: text, attributes: self.attributesForCurrentState())
self.attributedText = NSAttributedString(string: self.text, attributes: self.attributesForCurrentState())
if let constrainedSize = self.constrainedSize {
let _ = self.updateLayout(constrainedSize)
}
}
}
}