kamrify commited on
Commit
eb24447
·
1 Parent(s): 8ba162d

Fix - Click event closes the driver

Browse files
Files changed (1) hide show
  1. 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