Skip to content

Commit

Permalink
Sebastian's review
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Sep 1, 2021
1 parent bf435d2 commit 01d62f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/material-ui/src/InputBase/InputBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ export const InputBaseComponent = styled('input', {
};
});

const InputGlobalStyles = React.memo(() => (
const inputGlobalStyles = (
<GlobalStyles
styles={{
'@keyframes mui-auto-fill': { from: { display: 'block' } },
'@keyframes mui-auto-fill-cancel': { from: { display: 'block' } },
}}
/>
));
);

/**
* `InputBase` contains as few styles as possible.
Expand Down Expand Up @@ -493,7 +493,7 @@ const InputBase = React.forwardRef(function InputBase(inProps, ref) {

return (
<React.Fragment>
<InputGlobalStyles />
{inputGlobalStyles}
<Root
{...rootProps}
{...(!isHostComponent(Root) && {
Expand Down

0 comments on commit 01d62f7

Please sign in to comment.