[Vuejs]-Masked input gets data incorrectly

-1👍

Try this:

new Vue({
  el: '#q-app',
  data: function () {
    return {
      version: Quasar.version,
      officeNum: '',
      mobileNum: '',
      showMobileNum: true,
      showOfficeNum: false
    }
  },
  beforeMount: function() {
      this.officeNum = '654321',
      this.mobileNum =  '12345678'
  },
  methods: {
    updateBoolean() {
	    this.showOfficeNum = !this.showOfficeNum
      this.showMobileNum = !this.showMobileNum
    }
	}
})

You can check the working code here:
https://jsfiddle.net/f5wja3xs/2/

Leave a comment