Skip to content

Commit 7d4c330

Browse files
committed
upgrade react-textarea-autosize dependency to 8.3.2
1 parent e27fabc commit 7d4c330

File tree

5 files changed

+50
-23
lines changed

5 files changed

+50
-23
lines changed

package-lock.json

+47-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "react-json-view",
33
"description": "Interactive react component for displaying javascript arrays and JSON objects.",
4-
"version": "1.21.1",
4+
"version": "1.21.2",
55
"main": "dist/main.js",
66
"dependencies": {
77
"flux": "^4.0.1",
88
"react-base16-styling": "^0.6.0",
99
"react-lifecycles-compat": "^3.0.4",
10-
"react-textarea-autosize": "^6.1.0"
10+
"react-textarea-autosize": "^8.3.2"
1111
},
1212
"devDependencies": {
1313
"@babel/eslint-parser": "^7.12.1",

src/js/components/VariableEditor.js

+1
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ class VariableEditor extends React.PureComponent {
293293
e.stopPropagation();
294294
}}
295295
placeholder="update this value"
296+
minRows={2}
296297
{...Theme(theme, 'edit-input')}
297298
/>
298299
<div {...Theme(theme, 'edit-icon-container')}>

src/js/themes/getStyle.js

-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ const getDefaultThemeStyling = theme => {
292292
},
293293
'edit-input': {
294294
display: 'inline-block',
295-
minHeight: constants.editInputHeight,
296295
minWidth: constants.editInputMinWidth,
297296
borderRadius: constants.editInputBorderRadius,
298297
backgroundColor: colors.editVariable.background,

src/js/themes/styleConstants.js

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export default {
6969

7070
tooltipPadding: '4px',
7171

72-
editInputHeight: '25px',
7372
editInputMinWidth: '130px',
7473
editInputBorderRadius: '2px',
7574
editInputPadding: '5px',

0 commit comments

Comments
 (0)