fix(files_sharing): file request form validity check reset

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
skjnldsv 2025-01-29 11:23:44 +01:00 committed by nextcloud-command
parent e84a12c6f6
commit 46d58ce207
9 changed files with 16 additions and 11 deletions

View file

@ -218,10 +218,9 @@ export default defineComponent({
methods: {
onPageNext() {
const form = this.$refs.form as HTMLFormElement
if (!form.checkValidity()) {
form.reportValidity()
return
}
// Reset custom validity
form.querySelectorAll('input').forEach(input => input.setCustomValidity(''))
// custom destination validation
// cannot share root
@ -232,6 +231,12 @@ export default defineComponent({
return
}
// If the form is not valid, show the error message
if (!form.checkValidity()) {
form.reportValidity()
return
}
if (this.currentStep === STEP.FIRST) {
this.currentStep = STEP.SECOND
return

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
6372-6372.js.license

File diff suppressed because one or more lines are too long

1
dist/8894-8894.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/8894-8894.js.map.license vendored Symbolic link
View file

@ -0,0 +1 @@
8894-8894.js.license

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long