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

Change the pointer events value to be valid #210

Merged
merged 1 commit into from
Apr 13, 2019

Conversation

oliviertassinari
Copy link
Contributor

@oliviertassinari oliviertassinari commented Apr 12, 2019

I have found the issue in https://validator.w3.org/nu/?doc=https%3A%2F%2Fnext.material-ui.com%2Fdemos%2Flists%2F. We have a demo with this library.

Capture d’écran 2019-04-13 à 01 43 38

(n°1 is an issue with Next.js)

@@ -326,7 +326,7 @@ export default function createListComponent({
ref: innerRef,
style: {
height: isHorizontal ? '100%' : estimatedTotalSize,
pointerEvents: isScrolling ? 'none' : '',
pointerEvents: isScrolling ? 'none' : null,
Copy link
Owner

Choose a reason for hiding this comment

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

Oh weird 😮I would have sworn the else condition was undefined

@bvaughn
Copy link
Owner

bvaughn commented Apr 13, 2019

The browser seems to drop an empty-string pointer-events style though from what I can see, so I don't know if this would actually have had any impact? Still, I'll publish a bugfix release shortly.

@bvaughn bvaughn merged commit 59df8dd into bvaughn:master Apr 13, 2019
@bvaughn
Copy link
Owner

bvaughn commented Apr 13, 2019

v1.8.1

@oliviertassinari oliviertassinari deleted the patch-1 branch April 13, 2019 08:25
@oliviertassinari
Copy link
Contributor Author

I haven't noticed any impact. I aim at zero error reported by w3.org validator :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants