Skip to content

Commit 9d3362a

Browse files
author
DELORD Vincent
committed
Update glocal src attribute when src prop is updated
1 parent 39f7b6b commit 9d3362a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/js/index.js

Lines changed: 8 additions & 0 deletions
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)