@etsoo/materialui 1.0.40 → 1.0.42
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/DataSteps.js +7 -3
- package/package.json +1 -1
- package/src/DataSteps.tsx +5 -2
package/lib/DataSteps.js
CHANGED
|
@@ -74,11 +74,15 @@ export function DataSteps(props) {
|
|
|
74
74
|
setLocalValue(valueFormatter(dataRef.current));
|
|
75
75
|
}
|
|
76
76
|
}, [jsonValue]);
|
|
77
|
-
return (React.createElement(TextField, { InputLabelProps: InputLabelProps, InputProps: {
|
|
78
|
-
onKeyDown:
|
|
77
|
+
return (React.createElement(TextField, { InputLabelProps: InputLabelProps, inputProps: { style: { cursor: 'pointer' } }, InputProps: {
|
|
78
|
+
onKeyDown: (event) => {
|
|
79
|
+
if (event.key === 'Tab')
|
|
80
|
+
return;
|
|
81
|
+
cancelInput(event);
|
|
82
|
+
},
|
|
79
83
|
onPaste: cancelInput,
|
|
80
84
|
endAdornment: (React.createElement(InputAdornment, { position: "end" },
|
|
81
85
|
React.createElement(IconButton, { edge: "end", size: "small" },
|
|
82
86
|
React.createElement(StartIcon, null))))
|
|
83
|
-
},
|
|
87
|
+
}, onClick: () => showStep(0), value: localValue, ...rest }));
|
|
84
88
|
}
|
package/package.json
CHANGED
package/src/DataSteps.tsx
CHANGED
|
@@ -181,8 +181,12 @@ export function DataSteps<T extends object>(props: DataStepsProps<T>) {
|
|
|
181
181
|
return (
|
|
182
182
|
<TextField
|
|
183
183
|
InputLabelProps={InputLabelProps}
|
|
184
|
+
inputProps={{ style: { cursor: 'pointer' } }}
|
|
184
185
|
InputProps={{
|
|
185
|
-
onKeyDown:
|
|
186
|
+
onKeyDown: (event) => {
|
|
187
|
+
if (event.key === 'Tab') return;
|
|
188
|
+
cancelInput(event);
|
|
189
|
+
},
|
|
186
190
|
onPaste: cancelInput,
|
|
187
191
|
endAdornment: (
|
|
188
192
|
<InputAdornment position="end">
|
|
@@ -192,7 +196,6 @@ export function DataSteps<T extends object>(props: DataStepsProps<T>) {
|
|
|
192
196
|
</InputAdornment>
|
|
193
197
|
)
|
|
194
198
|
}}
|
|
195
|
-
sx={{ cursor: 'pointer' }}
|
|
196
199
|
onClick={() => showStep(0)}
|
|
197
200
|
value={localValue}
|
|
198
201
|
{...rest}
|