'Bootstrap vue input type="number"

When creating type="number" input, it getting '+' or '-' characters. I want to prevent it. However when I tried to watch every state changed on input value, it does not show '+' or '-' characters.

input:

  <b-form-input   
      v-model="port"
      type="number"             
     >

and watch:

watch: {
    port(val){
      console.log("val ", val)
    }
  },

For example when I write '564+-' to the input then the watch just can follow '564'. How can prevent minus and plus characters?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source