()
| 38 | }; |
| 39 | |
| 40 | const showClearTextButton = () => { |
| 41 | const search = document.getElementById("search"); |
| 42 | const clear = document.getElementById("clear"); |
| 43 | if (search.value.length) { |
| 44 | clear.classList.remove("none"); |
| 45 | clear.classList.add("flex"); |
| 46 | } else { |
| 47 | clear.classList.add("none"); |
| 48 | clear.classList.remove("flex"); |
| 49 | } |
| 50 | }; |
| 51 | |
| 52 | const clearSearchText = (event) => { |
| 53 | event.preventDefault(); |
nothing calls this directly
no outgoing calls
no test coverage detected