Skip to content

Commit

Permalink
Merge pull request #339 from mac-s-g/react-17-support
Browse files Browse the repository at this point in the history
upgrade react-textarea-autosize dependency to 8.3.2
  • Loading branch information
mac-s-g committed Mar 8, 2021
2 parents 049fcef + 95b486f commit 34c3994
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 23 deletions.
66 changes: 47 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "react-json-view",
"description": "Interactive react component for displaying javascript arrays and JSON objects.",
"version": "1.21.1",
"version": "1.21.2",
"main": "dist/main.js",
"dependencies": {
"flux": "^4.0.1",
"react-base16-styling": "^0.6.0",
"react-lifecycles-compat": "^3.0.4",
"react-textarea-autosize": "^6.1.0"
"react-textarea-autosize": "^8.3.2"
},
"devDependencies": {
"@babel/eslint-parser": "^7.12.1",
Expand Down
1 change: 1 addition & 0 deletions src/js/components/VariableEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ class VariableEditor extends React.PureComponent {
e.stopPropagation();
}}
placeholder="update this value"
minRows={2}
{...Theme(theme, 'edit-input')}
/>
<div {...Theme(theme, 'edit-icon-container')}>
Expand Down
1 change: 0 additions & 1 deletion src/js/themes/getStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ const getDefaultThemeStyling = theme => {
},
'edit-input': {
display: 'inline-block',
minHeight: constants.editInputHeight,
minWidth: constants.editInputMinWidth,
borderRadius: constants.editInputBorderRadius,
backgroundColor: colors.editVariable.background,
Expand Down
1 change: 0 additions & 1 deletion src/js/themes/styleConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default {

tooltipPadding: '4px',

editInputHeight: '25px',
editInputMinWidth: '130px',
editInputBorderRadius: '2px',
editInputPadding: '5px',
Expand Down

0 comments on commit 34c3994

Please sign in to comment.