From 4565feaf9ccdc9b215e85f22917bbe300f3a57c4 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 27 Feb 2020 12:58:19 +0100 Subject: viewer: removing a tag from the filters opens the keyboard on mobile Changed the anchor event to trigger on capture instead of bubbling. This fixes a race-condition on some browsers. --- viewer/src/components/LdTagInput.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'viewer/src/components') diff --git a/viewer/src/components/LdTagInput.vue b/viewer/src/components/LdTagInput.vue index 34d96bd..ad0845e 100644 --- a/viewer/src/components/LdTagInput.vue +++ b/viewer/src/components/LdTagInput.vue @@ -63,8 +63,7 @@ export default class LdTagInput extends Vue { // Prevents the keyboard from opening on mobile when removing a tag onClick(e: MouseEvent) { const target = e.target; - if (target instanceof HTMLAnchorElement) - target.addEventListener("click", e => e.stopPropagation()); + if (target instanceof HTMLAnchorElement) target.addEventListener("click", e => e.stopPropagation(), true); } } -- cgit v1.2.3