Skip to content

Commit 1591289

Browse files
authored
Merge pull request mac-s-g#209 from vdelord/fix-src-update-broke-edition
Update glocal src attribute when src prop is updated
2 parents 39f7b6b + 9d3362a commit 1591289

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/js/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ class ReactJsonView extends React.PureComponent {
116116
editKeyRequest: false
117117
});
118118
}
119+
if (prevProps.src !== this.state.src) {
120+
ObjectAttributes.set(
121+
this.rjvId,
122+
'global',
123+
'src',
124+
this.state.src
125+
);
126+
}
119127
}
120128

121129
componentWillUnmount() {

0 commit comments

Comments
 (0)