Skip to content

Commit

Permalink
Fix scroll on hover (recharts#3006)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryczko authored Oct 12, 2022
1 parent 0417cb8 commit 4921913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class Tooltip<TValue extends ValueType, TName extends NameType> extends P
this.setState({ dismissed: false });
}
} else {
this.wrapperNode.focus();
this.wrapperNode.focus({ preventScroll: true });
}

if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) {
Expand Down

0 comments on commit 4921913

Please sign in to comment.