Skip to content

Commit ecab9a3

Browse files
kum-deepaknomego
authored andcommitted
Make event handler dc@5 and dc@6 compatible
1 parent efead3f commit ecab9a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/charts/html-legend.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,12 @@ export class HtmlLegend {
219219
event.preventDefault();
220220
}
221221
}))
222-
.on('focus', d => {
222+
.on('focus', config._d3compat.eventHandler(d => {
223223
this._parent.legendHighlight(d);
224-
})
225-
.on('blur', d => {
224+
}))
225+
.on('blur', config._d3compat.eventHandler(d => {
226226
this._parent.legendReset(d);
227-
});
227+
}));
228228
}
229229
}
230230

0 commit comments

Comments
 (0)