react-beautiful-dnd
react-beautiful-dnd copied to clipboard
Fix style reflow
Changing user-select on the body element forces a style reflow for all elements in the body, this fixes that by only applying the user-select: none to the draggable element, this has the same intended effect.
You can see here in the MDN docs for user-select that clicking on an element with user-select: none and trying to highlight any other text by dragging around does not highlight any other text.
https://developer.mozilla.org/en-US/docs/Web/CSS/user-select#result
Fixes: #1850
Hooray! All contributors have signed the CLA.
Would someone be able to rerun the ci/circleci: test-a11y test, looks like it failed with a connection issue
Looking forward to see this merged so I am able to improve a performance of my feature a lot!
This is still an issue in 2023. Is there some blocking concerns in this PR?