Petran
Petran

Reputation: 8047

Bootstrap vue on:blur handler is not been called

I have the following component

<template>
  <b-input :value="value" @blur="validateEmail" ref="input" :state="state"/>
</template>

<script>
  export default {

    methods: {
      validateEmail: function() {
      console.log('test')
    },

  }
</script>

The method validateEmail is not been triggered when input loses focus.

Upvotes: 1

Views: 643

Answers (1)

Hamilton Gabriel
Hamilton Gabriel

Reputation: 367

Change @blur to @change and it will work.

Upvotes: 1

Related Questions