moved maxLength out of base

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-04-08 10:15:11 -05:00
parent 7f9705db32
commit 67c96ca74c
2 changed files with 10 additions and 5 deletions

View File

@ -197,9 +197,7 @@ open class EntryFieldBase: Control, Changeable, FormFieldInternalValidatable {
open var transparentBackground: Bool = false { didSet { setNeedsUpdate() } }
open var width: CGFloat? { didSet { setNeedsUpdate() } }
open var maxLength: Int? { didSet { setNeedsUpdate() } }
open var inputId: String? { didSet { setNeedsUpdate() } }
/// The text of this textField.
@ -308,7 +306,6 @@ open class EntryFieldBase: Control, Changeable, FormFieldInternalValidatable {
tooltipModel = nil
transparentBackground = false
width = nil
maxLength = nil
inputId = nil
value = nil
defaultValue = nil

View File

@ -127,7 +127,15 @@ open class TextArea: EntryFieldBase {
$0.isScrollEnabled = false
}
open override var maxLength: Int? { willSet { countRule.maxLength = newValue }}
open var maxLength: Int? {
willSet {
countRule.maxLength = newValue
}
didSet {
setNeedsUpdate()
}
}
/// Color configuration for error icon.
internal var iconColorConfiguration = ControlColorConfiguration().with {