diff --git a/VDS/Components/TextFields/TextArea/TextArea.swift b/VDS/Components/TextFields/TextArea/TextArea.swift index f8a9a6b3..8768352e 100644 --- a/VDS/Components/TextFields/TextArea/TextArea.swift +++ b/VDS/Components/TextFields/TextArea/TextArea.swift @@ -111,6 +111,8 @@ open class TextArea: EntryFieldBase { } didSet { + setNeedsUpdate() + if textView.isFirstResponder { validate() } @@ -191,8 +193,9 @@ open class TextArea: EntryFieldBase { override func updateRules() { super.updateRules() - - rules.append(.init(countRule)) + if let maxLength, maxLength > 0 { + rules.append(.init(countRule)) + } } open override func getFieldContainer() -> UIView {