Why is dangerouslyBypassScrollLock named as such since it is _not _dangerous?
#1000
ericmorand
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm maintaining a project that uses reach dialog components to handle, well, modal dialogs. In order to stop the component from messing with the body style, we have to set the
dangerouslyBypassScrollLockproperty totrue. Which, of course, made our reviewers intrigued, asking us for clarification since the property is clearly hinted as dangerous.So, why is it considered by the maintainers as dangerous? What kind of danger can such a property brings to an application?
Beta Was this translation helpful? Give feedback.
All reactions