-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(replay): Default ignore file inputs for dead clicks #14227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -32,6 +32,8 @@ const MEDIA_SELECTORS = | |||
|
|||
const DEFAULT_NETWORK_HEADERS = ['content-length', 'content-type', 'accept']; | |||
|
|||
const DEFAULT_SLOW_CLICK_IGNORE_SELECTORS = ['input[type="file"]']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm wait, do we not already do that? in handleClick.ts
we have this code:
// If <input> tag, we only want to consider input[type='submit'] & input[type='button']
if (node.tagName === 'INPUT' && !['submit', 'button'].includes(node.getAttribute('type') || '')) {
return true;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah you are right, the test also passes without the change 🤔
size-limit report 📦
|
Ah my fault @chargome -- is it worth keeping the test? |
Adds a default selector for ignoring dead clicks on file inputs.
ref #80275