Merge pull request #50569 from nextcloud/backport/50524/stable31

[stable31] fix(files_sharing): file request form validity check reset
This commit is contained in:
Andy Scherzinger 2025-01-30 14:33:29 +01:00 committed by GitHub
commit 1dca8f98aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 @@
1191-1191.js.license

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

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

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long