Skip to content
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

[base-ui][useSlider] rearrange passive option in eventlisteners #40235

Merged
merged 2 commits into from
Dec 27, 2023

Conversation

Kamino0
Copy link
Contributor

@Kamino0 Kamino0 commented Dec 18, 2023

As suggested by @pixelass in issue 39365, I removed unnecessary eventListener passive options and added them where needed

@mui-bot
Copy link

mui-bot commented Dec 18, 2023

Netlify deploy preview

https://deploy-preview-40235--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 6703640

@zannager zannager added component: slider This is the name of the generic UI component, not the React module! package: base-ui Specific to @mui/base labels Dec 18, 2023
@zannager zannager requested review from mnajdova and michaldudak and removed request for mnajdova December 18, 2023 17:24
slider!.addEventListener('touchstart', handleTouchStart, {
passive: doesSupportTouchActionNone(),
});
slider!.addEventListener('touchstart', handleTouchStart);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can remain as it was before. Only the removeEventListener function doesn't need the third parameter.

Copy link
Member

@michaldudak michaldudak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@michaldudak michaldudak merged commit cfbf83e into mui:master Dec 27, 2023
19 checks passed
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: slider This is the name of the generic UI component, not the React module! package: base-ui Specific to @mui/base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants