Skip to content

Commit

Permalink
Moved dangereous html disable line
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo Ivanov committed Mar 2, 2020
1 parent 878aa0e commit 7f51ae9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/material-ui/src/OutlinedInput/NotchedOutline.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ const NotchedOutline = React.forwardRef(function NotchedOutline(props, ref) {
[classes.legendNotched]: notched,
})}
>
{/* Use the nominal use case of the legend, avoid rendering artefacts. */}
{/* eslint-disable-next-line react/no-danger */}
{label ? (
<span className={clsx(classes.legendLabel)}>{label}</span>
) : (
/* Use the nominal use case of the legend, avoid rendering artefacts. */
<span
className={clsx(classes.legendLabel)}
/* eslint-disable-next-line react/no-danger */
dangerouslySetInnerHTML={{ __html: '&#8203;' }}
/>
)}
Expand Down Expand Up @@ -134,9 +134,9 @@ const NotchedOutline = React.forwardRef(function NotchedOutline(props, ref) {
}}
>
{/* Use the nominal use case of the legend, avoid rendering artefacts. */}
{/* eslint-disable-next-line react/no-danger */}
<span
className={clsx(classes.legendLabel)}
/* eslint-disable-next-line react/no-danger */
dangerouslySetInnerHTML={{ __html: '&#8203;' }}
/>
</legend>
Expand Down

0 comments on commit 7f51ae9

Please sign in to comment.