File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 11{
2-     "name" : " tariff-react-json-view"  ,
3-     "description" : " Interactive react component for displaying javascript arrays and JSON objects."  ,
4-     "version" : " 1.19.0"  ,
2+     "name" : " react-json-view"  ,
3+     "description" :
4+         " Interactive react component for displaying javascript arrays and JSON objects."  ,
5+     "version" : " 1.19.1"  ,
56    "main" : " dist/main.js"  ,
67    "dependencies" : {
78        "flux" : " ^3.1.3"  ,
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export default class extends React.PureComponent {
9797        } 
9898
9999        return  ( 
100-             < span  class = "copy-to-clipboard-container" > 
100+             < span  class = "copy-to-clipboard-container"   title = "Copy to clipboard" > 
101101                < span 
102102                    style = { { 
103103                        ...style , 
Original file line number Diff line number Diff 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 ( )  { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments