Skip to content

Commit 6e7cdd5

Browse files
authored
chore: do not show highlight in lightweight recorder mode (microsoft#36868)
1 parent bc283a7 commit 6e7cdd5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/injected/src/recorder/recorder.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,15 @@ class JsonRecordActionTool implements RecorderTool {
640640
this._recorder = recorder;
641641
}
642642

643+
install() {
644+
// No highlight for the lightweight recorder.
645+
this._recorder.highlight.uninstall();
646+
}
647+
648+
uninstall() {
649+
this._recorder.highlight.install();
650+
}
651+
643652
onClick(event: MouseEvent) {
644653
// in webkit, sliding a range element may trigger a click event with a different target if the mouse is released outside the element bounding box.
645654
// So we check the hovered element instead, and if it is a range input, we skip click handling

0 commit comments

Comments
 (0)