@etsoo/materialui 1.0.41 → 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 +6 -3
- package/package.json +1 -1
- package/src/DataSteps.tsx +5 -2
package/lib/DataSteps.js
CHANGED
|
@@ -74,10 +74,13 @@ 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
|
-
sx: { cursor: 'pointer' },
|
|
81
84
|
endAdornment: (React.createElement(InputAdornment, { position: "end" },
|
|
82
85
|
React.createElement(IconButton, { edge: "end", size: "small" },
|
|
83
86
|
React.createElement(StartIcon, null))))
|
package/package.json
CHANGED
package/src/DataSteps.tsx
CHANGED
|
@@ -181,10 +181,13 @@ 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
|
-
sx: { cursor: 'pointer' },
|
|
188
191
|
endAdornment: (
|
|
189
192
|
<InputAdornment position="end">
|
|
190
193
|
<IconButton edge="end" size="small">
|