moved maxLength out of base
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
7f9705db32
commit
67c96ca74c
@ -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
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user