From 4d7dde80307531efb56981554ea67a2a84da949a Mon Sep 17 00:00:00 2001 From: Gil Barbara Date: Tue, 12 Nov 2024 10:45:47 -0300 Subject: [PATCH] Disable tooltip keyboard focus if the `disableScrolling` is set --- src/components/Step.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Step.tsx b/src/components/Step.tsx index d7c3b9d9a..0a6e8d9dd 100644 --- a/src/components/Step.tsx +++ b/src/components/Step.tsx @@ -39,6 +39,7 @@ export default class JoyrideStep extends React.Component { helpers, index, lifecycle, + shouldScroll, status, step, store, @@ -139,7 +140,7 @@ export default class JoyrideStep extends React.Component { type: EVENTS.TOOLTIP, }); - if (this.tooltip) { + if (shouldScroll && this.tooltip) { this.scope = new Scope(this.tooltip, { selector: '[data-action=primary]' }); this.scope.setFocus(); }