Skip to content

Commit ab867d4

Browse files
committed
add default values to slow click ignore selector
1 parent b45b885 commit ab867d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/replay-internal/src/integration.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ const MEDIA_SELECTORS =
3232

3333
const DEFAULT_NETWORK_HEADERS = ['content-length', 'content-type', 'accept'];
3434

35+
const DEFAULT_SLOW_CLICK_IGNORE_SELECTORS = ['input[type="file"]'];
36+
3537
let _initialized = false;
3638

3739
/**
@@ -102,7 +104,7 @@ export class Replay implements Integration {
102104
mutationLimit = 10_000,
103105

104106
slowClickTimeout = 7_000,
105-
slowClickIgnoreSelectors = [],
107+
slowClickIgnoreSelectors = DEFAULT_SLOW_CLICK_IGNORE_SELECTORS,
106108

107109
networkDetailAllowUrls = [],
108110
networkDetailDenyUrls = [],

0 commit comments

Comments
 (0)