Skip to content

Commit 3cc1d57

Browse files
induratizedkamranahmedse
authored andcommitted
Add comment for overlayClickNext
1 parent 4f92bf4 commit 3cc1d57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export default class Driver {
117117
const clickedHighlightedElement = highlightedElement.node.contains(e.target);
118118
const clickedPopover = popover && popover.contains(e.target);
119119

120+
// Perform the 'Next' operation when clicked outside the highlighted element
120121
if (!clickedHighlightedElement && !clickedPopover && this.options.overlayClickNext) {
121122
this.handleNext();
122123
return;

0 commit comments

Comments
 (0)