Browse Source

Merge pull request #6139 from wenzhixin/fix/6138

Fixed cookie extension error with multiple-sort
Dustin Utecht 3 years ago
parent
commit
b03cdba0bc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/extensions/cookie/bootstrap-table-cookie.js

+ 4 - 0
src/extensions/cookie/bootstrap-table-cookie.js

@@ -307,6 +307,10 @@ $.BootstrapTable = class extends $.BootstrapTable {
   onMultipleSort (...args) {
     super.onMultipleSort(...args)
 
+    if (!this.options.cookie) {
+      return
+    }
+
     if (this.options.sortPriority === undefined) {
       UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortPriority)
     } else {