Skip to content

Commit

Permalink
fix: not clearing 'about movie' after clearing search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
dungasdev committed Sep 25, 2024
1 parent b13863d commit ba89857
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const mostrarSugestoes = (sugestoes) => {

const pesquisaComDebounce = () => {
clearTimeout(temporizadorDebounce);
resultado.innerHTML = ""; // Limpa o resultado anterior
temporizadorDebounce = setTimeout(async () => {
const termoPesquisa = refNomeFilme.value;
if (termoPesquisa.length > 2) {
Expand Down

0 comments on commit ba89857

Please sign in to comment.