Fix - Click event closes the driver
Browse files- src/index.js +5 -0
src/index.js
CHANGED
@@ -106,6 +106,11 @@ export default class Driver {
|
|
106 |
return;
|
107 |
}
|
108 |
|
|
|
|
|
|
|
|
|
|
|
109 |
const highlightedElement = this.overlay.getHighlightedElement();
|
110 |
const popover = this.document.getElementById(ID_POPOVER);
|
111 |
|
|
|
106 |
return;
|
107 |
}
|
108 |
|
109 |
+
// Stop the event propagation on click/tap. `onClick` handles
|
110 |
+
// both touch and click events – which on some browsers causes
|
111 |
+
// the click to close the tour
|
112 |
+
e.stopPropagation();
|
113 |
+
|
114 |
const highlightedElement = this.overlay.getHighlightedElement();
|
115 |
const popover = this.document.getElementById(ID_POPOVER);
|
116 |
|