@etsoo/react 1.1.93 → 1.1.94
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/mu/ComboBox.js +1 -1
- package/lib/mu/Tiplist.js +1 -1
- package/package.json +1 -1
- package/src/mu/ComboBox.tsx +2 -2
- package/src/mu/Tiplist.tsx +2 -3
package/lib/mu/ComboBox.js
CHANGED
|
@@ -50,5 +50,5 @@ export function ComboBox(props) {
|
|
|
50
50
|
// Custom
|
|
51
51
|
if (onChange != null)
|
|
52
52
|
onChange(event, value, reason, details);
|
|
53
|
-
}, sx: sx, renderInput: (params) => search ? (React.createElement(SearchField, { ...addReadOnly(params),
|
|
53
|
+
}, sx: sx, renderInput: (params) => search ? (React.createElement(SearchField, { ...inputProps, ...addReadOnly(params), label: label })) : (React.createElement(InputField, { ...inputProps, ...addReadOnly(params), label: label })), options: options, ...rest })));
|
|
54
54
|
}
|
package/lib/mu/Tiplist.js
CHANGED
|
@@ -149,5 +149,5 @@ export function Tiplist(props) {
|
|
|
149
149
|
open: false,
|
|
150
150
|
...(!states.value && { options: [] })
|
|
151
151
|
});
|
|
152
|
-
}, loading: states.loading, sx: sx, renderInput: (params) => search ? (React.createElement(SearchField, { onChange: changeHandle, readOnly: readOnly,
|
|
152
|
+
}, loading: states.loading, sx: sx, renderInput: (params) => search ? (React.createElement(SearchField, { ...inputProps, onChange: changeHandle, readOnly: readOnly, label: label })) : (React.createElement(InputField, { ...inputProps, onChange: changeHandle, ...addReadOnly(params), label: label })), isOptionEqualToValue: (option, value) => option[idField] === value[idField], ...rest })));
|
|
153
153
|
}
|
package/package.json
CHANGED
package/src/mu/ComboBox.tsx
CHANGED
|
@@ -148,14 +148,14 @@ export function ComboBox<T extends Record<string, any>>(
|
|
|
148
148
|
renderInput={(params) =>
|
|
149
149
|
search ? (
|
|
150
150
|
<SearchField
|
|
151
|
-
{...addReadOnly(params)}
|
|
152
151
|
{...inputProps}
|
|
152
|
+
{...addReadOnly(params)}
|
|
153
153
|
label={label}
|
|
154
154
|
/>
|
|
155
155
|
) : (
|
|
156
156
|
<InputField
|
|
157
|
-
{...addReadOnly(params)}
|
|
158
157
|
{...inputProps}
|
|
158
|
+
{...addReadOnly(params)}
|
|
159
159
|
label={label}
|
|
160
160
|
/>
|
|
161
161
|
)
|
package/src/mu/Tiplist.tsx
CHANGED
|
@@ -293,17 +293,16 @@ export function Tiplist<T extends Record<string, any>>(props: TiplistProps<T>) {
|
|
|
293
293
|
renderInput={(params) =>
|
|
294
294
|
search ? (
|
|
295
295
|
<SearchField
|
|
296
|
+
{...inputProps}
|
|
296
297
|
onChange={changeHandle}
|
|
297
298
|
readOnly={readOnly}
|
|
298
|
-
{...addReadOnly(params)}
|
|
299
|
-
{...inputProps}
|
|
300
299
|
label={label}
|
|
301
300
|
/>
|
|
302
301
|
) : (
|
|
303
302
|
<InputField
|
|
303
|
+
{...inputProps}
|
|
304
304
|
onChange={changeHandle}
|
|
305
305
|
{...addReadOnly(params)}
|
|
306
|
-
{...inputProps}
|
|
307
306
|
label={label}
|
|
308
307
|
/>
|
|
309
308
|
)
|