@etsoo/materialui 1.1.17 → 1.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/OptionGroup.js +6 -3
- package/package.json +1 -1
- package/src/OptionGroup.tsx +6 -3
package/lib/OptionGroup.js
CHANGED
|
@@ -94,10 +94,13 @@ export function OptionGroup(props) {
|
|
|
94
94
|
return (React.createElement(React.Fragment, null,
|
|
95
95
|
React.createElement(FormControl, { component: "fieldset", fullWidth: fullWidth, ...rest },
|
|
96
96
|
label && (React.createElement(InputLabel, { required: required, variant: variant, shrink: true }, label)),
|
|
97
|
-
variant === "outlined" && (React.createElement(NotchedOutline, { label: label && required ? label + " *" : label, notched: true,
|
|
97
|
+
variant === "outlined" && (React.createElement(NotchedOutline, { label: label && required ? label + " *" : label, notched: true, sx: {
|
|
98
|
+
cursor: "default",
|
|
98
99
|
position: "absolute",
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
width: fullWidth ? "100%" : "auto",
|
|
101
|
+
"& input": {
|
|
102
|
+
visibility: "hidden"
|
|
103
|
+
}
|
|
101
104
|
} })),
|
|
102
105
|
React.createElement(Box, { paddingLeft: 2, paddingY: "7px", position: "absolute" }, group)),
|
|
103
106
|
helperText && React.createElement(FormHelperText, null, helperText)));
|
package/package.json
CHANGED
package/src/OptionGroup.tsx
CHANGED
|
@@ -286,10 +286,13 @@ export function OptionGroup<
|
|
|
286
286
|
<NotchedOutline
|
|
287
287
|
label={label && required ? label + " *" : label}
|
|
288
288
|
notched
|
|
289
|
-
|
|
289
|
+
sx={{
|
|
290
|
+
cursor: "default",
|
|
290
291
|
position: "absolute",
|
|
291
|
-
|
|
292
|
-
|
|
292
|
+
width: fullWidth ? "100%" : "auto",
|
|
293
|
+
"& input": {
|
|
294
|
+
visibility: "hidden"
|
|
295
|
+
}
|
|
293
296
|
}}
|
|
294
297
|
/>
|
|
295
298
|
)}
|