Skip to content

Commit

Permalink
fix(api): Change the way of hiding tooltip (#358)
Browse files Browse the repository at this point in the history
Changed dispatching event to direct node handling

Fix #343
Close #358
  • Loading branch information
netil authored Mar 29, 2018
1 parent 27a5ee4 commit 67c8305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/api/api.tooltip-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe("API tooltip", () => {
expect(tooltip.html()).to.be.ok;
expect(tooltip.style("display")).to.be.equal("block");

// check if tooltip data are correctly rendering
// check if tooltip data are correctly rendered
chart.data().forEach(v => {
const id = v.id;
const data = tooltip.select(`.${CLASS.tooltipName}-${id}`);
Expand Down
4 changes: 2 additions & 2 deletions src/api/api.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ const tooltip = extend(() => {}, {
hide: function() {
const $$ = this.internal;

// TODO: get target data by checking the state of focus
$$.dispatchEvent("mouseout", 0);
$$.hideTooltip();
$$.hideXGridFocus();
}
});

Expand Down

0 comments on commit 67c8305

Please sign in to comment.