Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-json-view",
"description": "Interactive react component for displaying javascript arrays and JSON objects.",
"version": "1.18.1",
"version": "1.18.2",
"main": "dist/main.js",
"dependencies": {
"flux": "^3.1.3",
Expand Down
3 changes: 2 additions & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ class ReactJsonView extends React.PureComponent {

resetState = () => {
this.setState({
validationFailure: false
validationFailure: false,
addKeyRequest: false
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this used to work by setting state directly at render time in index.js.
it was a hack. definitely looks better now.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome!

});
}
}
Expand Down