We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 937aaa1 commit ddcb615Copy full SHA for ddcb615
1 file changed
select2.js
@@ -3298,7 +3298,7 @@ the specific language governing permissions and limitations under the Apache Lic
3298
value = select2[method].apply(select2, args.slice(1));
3299
}
3300
if (indexOf(args[0], valueMethods) >= 0
3301
- || (indexOf(args[0], propertyMethods) && args.length == 1)) {
+ || (indexOf(args[0], propertyMethods) >= 0 && args.length == 1)) {
3302
return false; // abort the iteration, ready to return first matched value
3303
3304
} else {
0 commit comments