Explorar el Código

chore: unset removed invokers

Evan You hace 5 años
padre
commit
8d4abc3814
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      packages/runtime-dom/src/modules/events.ts

+ 1 - 0
packages/runtime-dom/src/modules/events.ts

@@ -80,6 +80,7 @@ export function patchEvent(
     } else if (existingInvoker) {
       // remove
       removeEventListener(el, name, existingInvoker, options)
+      invokers[rawName] = undefined
     }
   }
 }