InputNumber - inputStyle and min/max attributes - Vue warnings

UI Components for Vue
Post Reply
wilfred
Posts: 2
Joined: 08 Sep 2023, 18:41

11 Sep 2023, 16:27

When applying an inputStyle (e.g. 'width: 90px'), which is rendered correctly, Vue logs the following warning in the console: [Vue warn]: Invalid prop: type check failed for prop "inputStyle". Expected Object, got String with value "width: 90px". '

In addition, when setting the min and max attributes on the InputNumber (e.g. with min=-99999) the following warning is logged in the console:
[Vue warn]: Invalid prop: type check failed for prop "min". Expected Number with value -99999, got String with value "-99999".

These warnings don't seem to interfere with correct component behavior in the browser though.

Could this be a possible improvement in the source of the InputNumber component, in order to prevent these warnings and possibly negative side effects?

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests