mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-29 15:57:03 +00:00
feat(StatusInput): add force argument to validate to force validation
This commit is contained in:
parent
b3dfa02297
commit
a05a35939a
@ -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…
x
Reference in New Issue
Block a user