Skip to content

Commit bb4c9f4

Browse files
authored
Merge pull request #6458 from nextcloud-libraries/fix/NcSelect--value-modelValue
[next] fix(NcSelect): `required` doesn't work
2 parents a6dba06 + 7df4d32 commit bb4c9f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/NcSelect/NcSelect.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ export default {
991991
return null
992992
}
993993
// The <input> itself does not have any value so we set the `required` attribute conditionally
994-
return this.value === null || (Array.isArray(this.value) && this.value.length === 0)
994+
return this.modelValue === null || (Array.isArray(this.modelValue) && this.modelValue.length === 0)
995995
},
996996

997997
localCalculatePosition() {

0 commit comments

Comments
 (0)