FIX: Fixed vanishing select boxes on full search as new content loads

FIX: Fixed vanishing select boxes on full search as new content loads

diff --git a/app/assets/javascripts/discourse/controllers/full-page-search.js.es6 b/app/assets/javascripts/discourse/controllers/full-page-search.js.es6
index 7822ad9..1c31bd2 100644
--- a/app/assets/javascripts/discourse/controllers/full-page-search.js.es6
+++ b/app/assets/javascripts/discourse/controllers/full-page-search.js.es6
@@ -216,12 +216,14 @@ export default Ember.Controller.extend({
       return;
     }
 
+    var args = { q: searchTerm, page: this.get("page") };
+
     this.set("searching", true);
     this.set("loading", true);
-    this.set("bulkSelectEnabled", false);
-    this.get("selected").clear();
-
-    var args = { q: searchTerm, page: this.get("page") };
+    if (args.page === 1) {
+      this.set("bulkSelectEnabled", false);
+      this.get("selected").clear();
+    }
 
     const sortOrder = this.get("sortOrder");
     if (sortOrder && SortOrders[sortOrder].term) {

GitHub sha: 5f006248

2 Likes