Abhinav Sharma
commited on
Commit
·
3cc1d57
1
Parent(s):
4f92bf4
Add comment for overlayClickNext
Browse files- src/index.js +1 -0
src/index.js
CHANGED
@@ -117,6 +117,7 @@ export default class Driver {
|
|
117 |
const clickedHighlightedElement = highlightedElement.node.contains(e.target);
|
118 |
const clickedPopover = popover && popover.contains(e.target);
|
119 |
|
|
|
120 |
if (!clickedHighlightedElement && !clickedPopover && this.options.overlayClickNext) {
|
121 |
this.handleNext();
|
122 |
return;
|
|
|
117 |
const clickedHighlightedElement = highlightedElement.node.contains(e.target);
|
118 |
const clickedPopover = popover && popover.contains(e.target);
|
119 |
|
120 |
+
// Perform the 'Next' operation when clicked outside the highlighted element
|
121 |
if (!clickedHighlightedElement && !clickedPopover && this.options.overlayClickNext) {
|
122 |
this.handleNext();
|
123 |
return;
|