Skip to content

Commit

Permalink
Merge pull request #6458 from nextcloud-libraries/fix/NcSelect--value…
Browse files Browse the repository at this point in the history
…-modelValue

[next] fix(NcSelect): `required` doesn't work
  • Loading branch information
susnux authored Jan 26, 2025
2 parents a6dba06 + 7df4d32 commit bb4c9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NcSelect/NcSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ export default {
return null
}
// The <input> itself does not have any value so we set the `required` attribute conditionally
return this.value === null || (Array.isArray(this.value) && this.value.length === 0)
return this.modelValue === null || (Array.isArray(this.modelValue) && this.modelValue.length === 0)
},

localCalculatePosition() {
Expand Down

0 comments on commit bb4c9f4

Please sign in to comment.