Skip to content

Commit

Permalink
Merge pull request #413 from VirtualFlyBrain/fix/412
Browse files Browse the repository at this point in the history
UI Reload bug
  • Loading branch information
Robbie1977 authored Sep 20, 2019
2 parents 845d6a6 + 87d7b43 commit c7a6466
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions components/interface/VFBTermInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ class VFBTermInfo extends React.Component {
var image = value.elements[j].initialValue;
elements.push(<div className="slider_image_container">
{image.name}
<a id={"slider_image_" + j} href="#" data-instancepath={image.reference}>
<a id={"slider_image_" + j} href="#" data-instancepath={image.reference} onClick={event => {
event.stopPropagation();
event.preventDefault();
this.props.customHandler(undefined, image.reference, undefined)
}}>
<img id={"image_" + j} src={image.data}></img>
</a>
</div>);
Expand Down Expand Up @@ -182,7 +186,11 @@ class VFBTermInfo extends React.Component {
var image = value;
this.contentTermInfo.values[prevCounter] = (<Collapsible open={true} trigger={this.contentTermInfo.keys[prevCounter]}>
<div className="popup-image">
<a href='#' data-instancepath={image.reference}>
<a href='#' data-instancepath={image.reference} onClick={event => {
event.stopPropagation();
event.preventDefault();
this.props.customHandler(undefined, image.reference, undefined)
}}>
<img src={image.data}></img>
</a>
</div>
Expand Down

0 comments on commit c7a6466

Please sign in to comment.