From a7f2868594e5d60233d342322284642f26de6b78 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Tue, 3 Dec 2024 17:25:14 +0000 Subject: [PATCH] fix(codegen): do not reset current tool upon clearing highlight (#33822) --- .../playwright-core/src/server/injected/recorder/recorder.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/playwright-core/src/server/injected/recorder/recorder.ts b/packages/playwright-core/src/server/injected/recorder/recorder.ts index ddfb0386d98e0..73740357061ee 100644 --- a/packages/playwright-core/src/server/injected/recorder/recorder.ts +++ b/packages/playwright-core/src/server/injected/recorder/recorder.ts @@ -1157,7 +1157,6 @@ export class Recorder { } clearHighlight() { - this._currentTool.cleanup?.(); this.updateHighlight(null, false); }