Skip to content

Commit 49f10b5

Browse files
committed
fix(NcPasswordField): reset validation state on change
- do not send a request on empty field Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent 7649c94 commit 49f10b5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/NcPasswordField/NcPasswordField.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,10 @@ export default {
325325
326326
watch: {
327327
model(newValue) {
328-
if (this.checkPasswordStrength) {
329-
if (passwordPolicy === null) {
330-
return
331-
}
328+
// Reset internal validation state on value change
329+
this.isValid = undefined
330+
this.internalHelpMessage = ''
331+
if (newValue && this.checkPasswordStrength) {
332332
this.checkPassword(newValue)
333333
}
334334
},

0 commit comments

Comments
 (0)