Skip to content

Commit 669de22

Browse files
committed
add removeEventListener in prepararBotao
1 parent a5fa54e commit 669de22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contadorComponent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
return (valor = true) => {
5656
const atributo = 'disabled';
57+
elementoBotao.removeEventListener('click', iniciarFn.bind(this));
5758

5859
if (valor) {
5960
elementoBotao.setAttribute(atributo, valor);

0 commit comments

Comments
 (0)