Skip to content

Commit

Permalink
Make event handler dc@5 and dc@6 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
kum-deepak authored and nomego committed Apr 6, 2021
1 parent 33fabad commit a42bf5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/charts/html-legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ export class HtmlLegend {
event.preventDefault();
}
}))
.on('focus', d => {
.on('focus', config._d3compat.eventHandler(d => {
this._parent.legendHighlight(d);
})
.on('blur', d => {
}))
.on('blur', config._d3compat.eventHandler(d => {
this._parent.legendReset(d);
});
}));
}
}

Expand Down

0 comments on commit a42bf5c

Please sign in to comment.