mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(ct): vue2 do not destroy events on update (#17995)
This commit is contained in:
parent
ced3efb688
commit
e0ce2a9bc1
@ -193,12 +193,6 @@ window.playwrightUpdate = async (element, options) => {
|
||||
const component = wrapper.componentInstance;
|
||||
const { nodeData, slots } = createComponent(options, component.$createElement);
|
||||
|
||||
|
||||
for (const [name] of Object.entries(component.$listeners || {})) {
|
||||
component.$off(name);
|
||||
delete component.$listeners[name];
|
||||
}
|
||||
|
||||
for (const [name, value] of Object.entries(nodeData.on || {})) {
|
||||
component.$on(name, value);
|
||||
component.$listeners[name] = value;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user