(opts = {})
| 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; |
no test coverage detected