MCPcopy Create free account
hub / github.com/error311/FileRise / clearSearch

Function clearSearch

public/js/adminPanel.js:5801–5810  ·  view source on GitHub ↗
(opts = {})

Source from the content-addressed store, hash-verified

5799 };
5800
5801 const clearSearch = (opts = {}) => {
5802 input.value = "";
5803 applyFilter();
5804 if (opts.collapse) {
5805 setOpen(false);
5806 }
5807 if (opts.focus) {
5808 input.focus();
5809 }
5810 };
5811
5812 if (clearBtn && !clearBtn.__wired) {
5813 clearBtn.__wired = true;

Callers 1

wireAdminPanelSearchFunction · 0.85

Calls 2

setOpenFunction · 0.85
applyFilterFunction · 0.70

Tested by

no test coverage detected