Attempt to fix filter variant prefix box on smartphones
authorBenjamin Auder <benjamin.auder@somewhere>
Sun, 23 Feb 2020 13:24:14 +0000 (14:24 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sun, 23 Feb 2020 13:24:14 +0000 (14:24 +0100)
client/src/views/Variants.vue

index 014aca6..3fccae5 100644 (file)
@@ -4,6 +4,7 @@ main
     .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
       input#prefixFilter(
         v-model="curPrefix"
+        @input="setCurPrefix($event)"
         :placeholder="st.tr['Prefix?']"
       )
     .variant.col-sm-12.col-md-5.col-lg-4(
@@ -47,6 +48,10 @@ export default {
     }
   },
   methods: {
+    // oninput listener, required for smartphones:
+    setCurPrefix: function(e) {
+      this.curPrefix = e.target.value;
+    },
     getLink: function(vname) {
       return "/variants/" + vname;
     }