Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/component/tooltip/TooltipView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,12 @@ class TooltipView extends ComponentView {

const dispatchAction = makeDispatchAction(payload, api);

// Reset ticket
this._ticket = '';
/** Note: We don't reset the ticket here anymore, because if the tooltip content
* hasn't changed, we want to preserve the async ticket so that pending callbacks
* can still update the tooltip. The ticket will be reset in _showTooltipContent
* when new content is actually shown.
*/
// this._ticket = '';

// When triggered from axisPointer.
const dataByCoordSys = payload.dataByCoordSys;
Expand Down
172 changes: 172 additions & 0 deletions test/tooltip-async-connect.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.