InputText: Many props have a default of undefined
but the docs say the default is null
#6593
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
This is what the types look like in this TypeScript definition file. You can see that it uses
undefined
instead ofnull
. The problem is that the docs say it acceptsnull
:Either the docs should be updated to say the default is
undefined
or the types should be updated to benull
or possibly bothnull
andundefined
.Maybe this problem is more widespread and effects other components.
Reproducer
https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-hjectn?file=src%2FApp.vue
PrimeVue version
4.1.1
Vue version
4.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: