Skip to content
Snippets Groups Projects
Commit 32f69be9 authored by Bitha17's avatar Bitha17
Browse files

edit: debouncing

parent b0c25b1f
No related merge requests found
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
// Attach the debounce function to the search input's input event // Attach the debounce function to the search input's input event
searchInput.addEventListener('input', debounceSearch); searchInput.addEventListener('input', debounceSearch);
document.getElementById('minStockInput').addEventListener('input', debounceSearch);
// Attach an event listener to the sort dropdown // Attach an event listener to the sort dropdown
document.getElementById('sortSelect').addEventListener('change', function () { document.getElementById('sortSelect').addEventListener('change', function () {
// Trigger the debounceSearch function when the sorting option changes // Trigger the debounceSearch function when the sorting option changes
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment