Skip to content

Commit

Permalink
Try add in stopPropogation to stop double click on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Nov 12, 2023
1 parent 5c22e7d commit cb017c4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/javascripts/tableselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ document$.subscribe(function() {
document.querySelectorAll("a.toggle-vis").forEach((el) => {
el.addEventListener('click', function (e) {
e.preventDefault();
e.stopPropagation();

let columnIdx = el.getAttribute("data-column");
let column = dataTable.column(columnIdx);
Expand Down
1 change: 1 addition & 0 deletions site/javascripts/tableselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ document$.subscribe(function() {
document.querySelectorAll("a.toggle-vis").forEach((el) => {
el.addEventListener('click', function (e) {
e.preventDefault();
e.stopPropagation();

let columnIdx = el.getAttribute("data-column");
let column = dataTable.column(columnIdx);
Expand Down
Binary file modified site/sitemap.xml.gz
Binary file not shown.

0 comments on commit cb017c4

Please sign in to comment.