Skip to content

Commit c415c0f

Browse files
committed
fix search filter
1 parent bd90441 commit c415c0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/controls/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@
199199
let params = new URLSearchParams(window.location.search);
200200
const searchValue = params.get('search');
201201
if (searchValue) {
202+
// get serach filter
202203
let searchInput = document.querySelector('.table-search-block input');
203204
searchInput.value = searchValue;
204-
205205
// Trouve la table et applique la recherche
206-
let tableElement = document.querySelector('.data-table'); // ou un ID précis si tu veux
206+
let tableElement = document.querySelector('.data-table');
207207
let table = Metro.getPlugin(tableElement, "table");
208208
if (table)
209209
table.search(searchValue);

0 commit comments

Comments
 (0)