Skip to content

Commit

Permalink
Merge pull request #3539 from bettyblocks/feat/text-area-still-scroll…
Browse files Browse the repository at this point in the history
…able-when-disabled-PAGE-4207

Feat/text area still scrollable when disabled page 4207
  • Loading branch information
dylanBetty authored Nov 28, 2024
2 parents 34d4983 + b0053d8 commit b844e1e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/textinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@
],
},
'&.Mui-disabled': {
pointerEvents: 'none',
opacity: '0.7',
},
},
Expand Down Expand Up @@ -427,8 +426,12 @@
'&:hover': {
'& .MuiOutlinedInput-notchedOutline, & .MuiFilledInput-underline, & .MuiInput-underline':
{
borderColor: ({ options: { borderHoverColor } }) => [
style.getColor(borderHoverColor),
borderColor: ({
options: { borderHoverColor, borderColor, disabled },
}) => [
disabled
? style.getColor(borderColor)
: style.getColor(borderHoverColor),
'!important',
],
},
Expand Down Expand Up @@ -459,7 +462,6 @@
},
},
'&.Mui-disabled': {
pointerEvents: 'none',
opacity: '0.7',
},
},
Expand Down

0 comments on commit b844e1e

Please sign in to comment.