diff --git a/src/js/select2/data/ajax.js b/src/js/select2/data/ajax.js index a3e69987..d6aedf78 100644 --- a/src/js/select2/data/ajax.js +++ b/src/js/select2/data/ajax.js @@ -82,7 +82,8 @@ define([ }, function () { // Attempt to detect if a request was aborted // Only works if the transport exposes a status property - if ('status' in $request && $request.status === 0) { + if ('status' in $request && + ($request.status === 0 || $request.status === '0')) { return; }