Skip to content

Commit

Permalink
Disable tooltip keyboard focus if the disableScrolling is set
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Nov 18, 2024
1 parent 3648311 commit af6fa9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default class JoyrideStep extends React.Component<StepProps> {
helpers,
index,
lifecycle,
shouldScroll,
status,
step,
store,
Expand Down Expand Up @@ -139,7 +140,7 @@ export default class JoyrideStep extends React.Component<StepProps> {
type: EVENTS.TOOLTIP,
});

if (this.tooltip) {
if (shouldScroll && this.tooltip) {
this.scope = new Scope(this.tooltip, { selector: '[data-action=primary]' });
this.scope.setFocus();
}
Expand Down

0 comments on commit af6fa9e

Please sign in to comment.