@arquimedes.co/eureka-forms 2.0.81 → 2.0.82
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.
|
@@ -254,18 +254,23 @@ function CustomSelect(_a) {
|
|
|
254
254
|
: {
|
|
255
255
|
margin: containerMargin,
|
|
256
256
|
}, fullWidth: true, required: required, error: error }, { children: [label && (_jsx(InputLabel, __assign({ classes: labelClasses }, { children: label }))), _jsx(Select, __assign({}, others, { innerRef: ref, title: calcTimeString(value), value: value ? 0 : '', IconComponent: ScheduleRoundedIcon, onClose: function () {
|
|
257
|
-
|
|
257
|
+
if (!cantEdit)
|
|
258
|
+
setOpen(false);
|
|
258
259
|
}, onOpen: function () {
|
|
260
|
+
if (cantEdit)
|
|
261
|
+
return;
|
|
259
262
|
setOpen(true);
|
|
260
263
|
if (required)
|
|
261
264
|
handleChange(value !== null && value !== void 0 ? value : {});
|
|
262
265
|
}, onFocus: function (e) {
|
|
263
266
|
var _a;
|
|
264
|
-
if (!((_a = e.relatedTarget) === null || _a === void 0 ? void 0 : _a.closest('.EF-MuiPaper-root'))
|
|
267
|
+
if (!((_a = e.relatedTarget) === null || _a === void 0 ? void 0 : _a.closest('.EF-MuiPaper-root')) &&
|
|
268
|
+
!cantEdit) {
|
|
265
269
|
setOpen(true);
|
|
266
270
|
}
|
|
267
271
|
}, onBlur: function () {
|
|
268
|
-
|
|
272
|
+
if (!cantEdit)
|
|
273
|
+
setOpen(false);
|
|
269
274
|
}, input: _jsx(OutlinedInput, { disabled: cantEdit, name: label, label: label ? calcLabel() : undefined, classes: outlinedInputClasses }), renderValue: function () {
|
|
270
275
|
return calcTimeString(value);
|
|
271
276
|
}, MenuProps: {
|