InputNumber warning on console

UI Components for Vue
Post Reply
dopi
Posts: 8
Joined: 27 Aug 2020, 11:17

16 Nov 2020, 17:42

Hi to everyone,

I'm using the InputNumber component. In the browser console I receive the following warning:

Code: Select all

[Vue warn]: Component emitted event "update:modelValue" but it is neither declared in the emits option nor as an "onUpdate:modelValue" prop.


when I press the button up or down. Here is the sample code I wrote to test it.

Code: Select all

<template>
    <div>
            <h3>InputNumber</h3>
            <InputNumber v-model="numero" :showButtons="true" />
            The number is <span>{{numero}}</span>
       </div>
</template>
<script>
import InputNumber from 'primevue/inputnumber';

export default {
    data() {
        return {
            numero: 5,
        }
    },
    components: {
        InputNumber, 
    }
}
</script>
Thanks in advance,

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests