Does anyone know why the touch does not work properly?

0

Hello Good evening I'm doing a form with materialize and vue js, but I do not work well on mobile phones and tablets any idea of why it may be, I leave the code below. In the computer it goes super well. is the only problem I have and I did not know about the existence of vuetify or the other libraries of material design that has vue.

const app = new Vue({
  el: "#form",
  data:{
      edad: null,
  },
  mounted(){
      $('select').formSelect();
  },
  computed:{
      getYears: function () {
        let years = [];
        for (let n = 2018; n >= 1920; n--) {
            years.push(n);
        }
        return years;
     },
  },
});
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">

<div id="form">
  <div class="input-field col s12">
    <select  v-model="edad">
      <option value="" disabled selected>
        selecciona tu edad
       </option>
      <option v-for="n in getYears" :value="n">
        {{ n }}
      </option>
    </select>
    <label>Materialize Select</label>
  </div>
  
  <div>
    tu edad es: {{edad}}
  </div>
</div>


    <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>

<script src="https://cdn.jsdelivr.net/npm/vue"></script>
    
asked by Alberto Ortega 26.10.2018 в 03:01
source

0 answers