Skip to content

Commit

Permalink
Merge pull request #3541 from bettyblocks/acceptance
Browse files Browse the repository at this point in the history
release
  • Loading branch information
dylanBetty authored Dec 2, 2024
2 parents 1b48262 + 3e4d4e6 commit 93bedc6
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [2.198.1](https://github.com/bettyblocks/material-ui-component-set/compare/v2.198.0...v2.198.1) (2024-11-29)


### Bug Fixes

* wrap select in a formfield component ([4d253fd](https://github.com/bettyblocks/material-ui-component-set/commit/4d253fd8b177efdecee636fb352c440090bb6189))

# [2.198.0](https://github.com/bettyblocks/material-ui-component-set/compare/v2.197.1...v2.198.0) (2024-11-28)


### Features

* make text area still scrollable when disabled ([7bafa7f](https://github.com/bettyblocks/material-ui-component-set/commit/7bafa7f435ca9de92d4e200a13ca2034ed7f97c9))

## [2.197.1](https://github.com/bettyblocks/material-ui-component-set/compare/v2.197.0...v2.197.1) (2024-11-19)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "component-set",
"version": "2.197.1",
"version": "2.198.1",
"main": "dist/templates.json",
"license": "UNLICENSED",
"private": false,
Expand Down
7 changes: 3 additions & 4 deletions src/components/selectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
useRelation,
useText,
} = B;
const { TextField, MenuItem } = window.MaterialUI.Core;
const { TextField, MenuItem, FormControl } = window.MaterialUI.Core;
const isDev = env === 'dev';
const [errorState, setErrorState] = useState(false);
const [afterFirstInvalidation, setAfterFirstInvalidation] = useState(false);
Expand Down Expand Up @@ -337,7 +337,7 @@
};

const SelectCmp = (
<>
<FormControl fullWidth={fullWidth}>
<TextField
id={actionVariableId}
InputLabelProps={{ htmlFor: labelControlRef }}
Expand All @@ -353,7 +353,6 @@
}`,
}}
variant={variant}
fullWidth={fullWidth}
onChange={handleChange}
onBlur={validationHandler}
inputProps={{
Expand Down Expand Up @@ -389,7 +388,7 @@
required={required}
value={placeholderLabelText === currentValue ? '' : currentValue}
/>
</>
</FormControl>
);

return isDev ? <div className={classes.root}>{SelectCmp}</div> : SelectCmp;
Expand Down
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 93bedc6

Please sign in to comment.