fix(ct): vue2 do not destroy events on update (#17995)
This commit is contained in:
Родитель
ced3efb688
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче