forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Auto-fix upcoming eslint issues (mui#34644)
- Loading branch information
Showing
80 changed files
with
1,234 additions
and
1,166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 12 additions & 14 deletions
26
docs/data/base/components/focus-trap/ContainedToggleTrappedFocus.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
<React.Fragment> | ||
<FocusTrap open={open} disableRestoreFocus disableAutoFocus> | ||
<Stack alignItems="center" spacing={2}> | ||
<button type="button" onClick={() => setOpen(!open)}> | ||
{open ? 'Close' : 'Open'} | ||
</button> | ||
{open && ( | ||
<label> | ||
First name: <input type="text" /> | ||
</label> | ||
)} | ||
</Stack> | ||
</FocusTrap> | ||
</React.Fragment> | ||
<FocusTrap open={open} disableRestoreFocus disableAutoFocus> | ||
<Stack alignItems="center" spacing={2}> | ||
<button type="button" onClick={() => setOpen(!open)}> | ||
{open ? 'Close' : 'Open'} | ||
</button> | ||
{open && ( | ||
<label> | ||
First name: <input type="text" /> | ||
</label> | ||
)} | ||
</Stack> | ||
</FocusTrap> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.