mirror of https://github.com/status-im/StatusQ.git
feat(StatusInput): add force argument to validate to force validation
This commit is contained in:
parent
2270526071
commit
e184348190
|
@ -249,9 +249,8 @@ Item {
|
|||
\qmlmethod
|
||||
This function validates the text input's text.
|
||||
*/
|
||||
function validate() {
|
||||
|
||||
if (!statusBaseInput.dirty && validationMode === StatusInput.ValidationMode.OnlyWhenDirty) {
|
||||
function validate(force) {
|
||||
if (!force && !statusBaseInput.dirty && validationMode === StatusInput.ValidationMode.OnlyWhenDirty) {
|
||||
return
|
||||
}
|
||||
statusBaseInput.valid = true
|
||||
|
|
Loading…
Reference in New Issue