Skip to content

Commit

Permalink
Fix(tooltip): 'findEventDispatcher' should add 'returnFirstMatch' for…
Browse files Browse the repository at this point in the history
… tooltip
  • Loading branch information
susiwen8 committed Jan 8, 2021
1 parent 575ad72 commit 49f471b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/tooltip/TooltipView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ class TooltipView extends ComponentView {
el: ECElement,
dispatchAction: ExtensionAPI['dispatchAction']
) {
const dispatcher = findEventDispatcher(el, (target) => getECData(target).dataIndex != null);
const dispatcher = findEventDispatcher(el, (target) => getECData(target).dataIndex != null, true);
const ecModel = this._ecModel;
const ecData = getECData(dispatcher);
// Use dataModel in element if possible
Expand Down

0 comments on commit 49f471b

Please sign in to comment.