fix: address remaining cubic review feedback - clearing search bar

This commit is contained in:
OrbanGergo 2026-08-01 16:56:58 +03:00
parent 23d405e7db
commit cb8900b20a
1 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,7 @@ const showSupportedSources = (targetExtension) => {
supportedSourcesEl.textContent = `Supported source types: ${unique.join(", ")}`;
})
.catch((err) => {
if (latestSourcesRequestTarget !== targetExtension) return;
if(latestSourcesRequestTarget !== targetExtension) return;
console.error(err);
supportedSourcesEl.textContent = "";
});
@ -168,6 +168,8 @@ const updateSearchBar = () => {
// when the user clears the search bar using the 'x' button
convertButton.disabled = true;
formatSelected = false;
latestSourcesRequestTarget = null;
supportedSourcesEl.textContent = "";
});
convertToInput.addEventListener("blur", (e) => {