aboutsummaryrefslogtreecommitdiff
path: root/viewer
diff options
context:
space:
mode:
authorZero~Informatique2020-02-27 12:58:19 +0100
committerZero~Informatique2020-02-27 12:58:19 +0100
commit4565feaf9ccdc9b215e85f22917bbe300f3a57c4 (patch)
tree351a74cb3d9a490c95758a3ed1ff4a93d5570a63 /viewer
parent0f90f85347c393d24ee39947041028f567512af5 (diff)
downloadldgallery-4565feaf9ccdc9b215e85f22917bbe300f3a57c4.tar.gz
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.
Diffstat (limited to 'viewer')
-rw-r--r--viewer/src/components/LdTagInput.vue3
1 files changed, 1 insertions, 2 deletions
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 {
63 // Prevents the keyboard from opening on mobile when removing a tag 63 // Prevents the keyboard from opening on mobile when removing a tag
64 onClick(e: MouseEvent) { 64 onClick(e: MouseEvent) {
65 const target = e.target; 65 const target = e.target;
66 if (target instanceof HTMLAnchorElement) 66 if (target instanceof HTMLAnchorElement) target.addEventListener("click", e => e.stopPropagation(), true);
67 target.addEventListener("click", e => e.stopPropagation());
68 } 67 }
69} 68}
70</script> 69</script>