From: Benjamin Auder Date: Sun, 23 Feb 2020 13:24:14 +0000 (+0100) Subject: Attempt to fix filter variant prefix box on smartphones X-Git-Url: https://git.auder.net/variants/%24%7Bvname%7D/current/img/pieces/rpsls.js?a=commitdiff_plain;h=9e3f662f10d803ef4f491f9339fb41f341ec8549;p=vchess.git Attempt to fix filter variant prefix box on smartphones --- diff --git a/client/src/views/Variants.vue b/client/src/views/Variants.vue index 014aca68..3fccae59 100644 --- a/client/src/views/Variants.vue +++ b/client/src/views/Variants.vue @@ -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; }