Browse Source

修复Grid::fetching事件有可能重复触发问题

jqh 5 years ago
parent
commit
1ee56f5522
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Grid/Concerns/HasFilter.php

+ 2 - 0
src/Grid/Concerns/HasFilter.php

@@ -85,6 +85,8 @@ trait HasFilter
         foreach ($this->beforeApplyFilterCallbacks as $callback) {
             $callback($this);
         }
+
+        $this->beforeApplyFilterCallbacks = [];
     }
 
     /**