Do not fail on input completion when source is an Array

Closes #13088
(grafted from 0d99c0394ebc50547cd18570833e68d908791300)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2024-03-09 10:49:27 +01:00
1 parent 1ae4c8a2f4
commit da420e585b
1 file changed
+1 -1
+1 -1
View File
@@ -3617,7 +3617,7 @@
}
var prm;
if (this.source instanceof Array) {
prm = jQuery.when(source.filter(function(value) {
prm = jQuery.when(this.source.filter(function(value) {
return value.toLowerCase().startsWith(text.toLowerCase());
}));
} else {