select2: fix handling of aborted queries (#17161)
This commit is contained in:
parent
61b74c8078
commit
03f23bc5b8
|
@ -3469,7 +3469,7 @@ S2.define('select2/data/ajax',[
|
|||
}, function () {
|
||||
// Attempt to detect if a request was aborted
|
||||
// Only works if the transport exposes a status property
|
||||
if ($request.status && $request.status === '0') {
|
||||
if ($request.status === 0 || $request.status === '0') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue