-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[docs] Copy ClickAwayListener docs to Base #31878
Conversation
|
||
{{"demo": "LeadingClickAway.js"}} | ||
|
||
> ⚠️ In this mode, only interactions on the scrollbar of the document is ignored. |
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.
@oliviertassinari I saw you introduced this comment. Would you mind elaborating on it? It seems that clicking on a scrollbar doesn't trigger onClickAway in any mode (at least in my setup - Edge on Windows)
dae9b54
to
e207309
Compare
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.
I am ok with merging it and iterating on the content in a follow up
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.
👍 LGTM
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; | ||
import jsonPageContent from './click-away-listener.json'; | ||
|
||
export default function Page(props) { |
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.
We forgot to add a redirection for this file, please let's always redirect older URLs. It was raised in https://app.ahrefs.com/site-audit/3524616/10/data-explorer?columns=pageRating%2Curl%2Ctraffic%2ChttpCode%2Cdepth%2Ccompliant%2CincomingAllLinks%2Corigin&filterCollapsed=true&filterId=c8b4cd2c48fbde5a00dcef1da5e81f8b&issueId=c64dae3f-d0f4-11e7-8ed1-001e67ed4656&sorting=-pageRating. I'm taking care of it in #32515.
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.
Thanks for taking care of it!
Copied the ClickAwayListener docs and modified the imports in the demos.
Preview: https://deploy-preview-31878--material-ui.netlify.app/base/react-click-away-listener/