Skip to content

Commit

Permalink
remove previous valueBox handlers when rebinding (fixes #139)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Aug 28, 2017
1 parent bfa84ee commit 73a7fe1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,8 @@ window.FlexDashboardComponents.push({
var dataHref = valueOutput.attr('data-href');
if (dataHref) {
valueBox.addClass('linked-value');
valueBox.on('click', function(e) {
valueBox.off('click.value-box');
valueBox.on('click.value-box', function(e) {
window.FlexDashboardUtils.showLinkedValue(dataHref);
});
}
Expand Down

0 comments on commit 73a7fe1

Please sign in to comment.