]> _ Git - odl.git/commitdiff
wip #5181 @0.25
authorvincent <vincent@enhydra.fr>
Sat, 26 Mar 2022 13:44:13 +0000 (14:44 +0100)
committervincent <vincent@enhydra.fr>
Sat, 26 Mar 2022 13:44:13 +0000 (14:44 +0100)
resources/js/search.js

index 66c3d67a1cdfac68b5266bb2becbd7b8765d4f6f..59735b51c14f73b5c5853f9c793d364e6715bb0e 100644 (file)
@@ -52,7 +52,13 @@ export default () => ({
             return [];
         }
 
-        return this.miniSearch.search(this.query);
+        var res = this.miniSearch.search(this.query);
+        setTimeout(function () {
+            Alpine.discoverUninitializedComponents(function (el) {
+                Alpine.initializeComponent(el)
+            })
+        }, 1000);
+        return res;
     },
 
     get resultCount() {