We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 43a598b + ddcb615 commit e801573Copy full SHA for e801573
1 file changed
select2.js
@@ -3306,7 +3306,7 @@ the specific language governing permissions and limitations under the Apache Lic
3306
value = select2[method].apply(select2, args.slice(1));
3307
}
3308
if (indexOf(args[0], valueMethods) >= 0
3309
- || (indexOf(args[0], propertyMethods) && args.length == 1)) {
+ || (indexOf(args[0], propertyMethods) >= 0 && args.length == 1)) {
3310
return false; // abort the iteration, ready to return first matched value
3311
3312
} else {
0 commit comments