@portnet/ui 0.1.18 → 0.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.
|
@@ -85,8 +85,6 @@ const PuiStandardDateTimeField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
85
85
|
disablePast: disablePast,
|
|
86
86
|
disableFuture: disableFuture,
|
|
87
87
|
disabled: disabled,
|
|
88
|
-
maxDate: maxDate,
|
|
89
|
-
minDate: minDate,
|
|
90
88
|
readOnly: readOnly,
|
|
91
89
|
viewRenderers: {
|
|
92
90
|
hours: null,
|
|
@@ -144,8 +142,11 @@ const PuiFormikDateTimeField = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
144
142
|
const formikContext = (0, _formik.useFormikContext)();
|
|
145
143
|
const [hasError, setHasError] = React.useState(false);
|
|
146
144
|
const handleChange = value => {
|
|
147
|
-
|
|
148
|
-
|
|
145
|
+
const formattedValue = format ? value.format(format) : value.toISOString();
|
|
146
|
+
formikContext.setFieldValue(name, formattedValue);
|
|
147
|
+
if (onChange) {
|
|
148
|
+
onChange(formattedValue);
|
|
149
|
+
}
|
|
149
150
|
};
|
|
150
151
|
const handleBlur = event => {
|
|
151
152
|
onBlur(event);
|
|
@@ -111,6 +111,7 @@ const StyledMuiTable = (0, _styles.styled)( /*#__PURE__*/React.forwardRef((props
|
|
|
111
111
|
textOverflow: "ellipsis",
|
|
112
112
|
overflow: "hidden",
|
|
113
113
|
maxHeight: "none",
|
|
114
|
+
minWidth: 'maxWidth',
|
|
114
115
|
wordBreak: "break-word",
|
|
115
116
|
"&.tableAction": {
|
|
116
117
|
justifyContent: "center",
|