Autocomplete: optionDisabled property type mismatch: Documentation vs. Implementation #17232
Labels
Component: Documentation
Issue or pull request is related to Documentation
Milestone
Describe the bug
The documentation for the
optionDisabled
property indicates that its type can be either a string or a function(similar to the behavior of optionLabel and optionValue)However, when attempting to pass a function to the
optionDisabled
property, the following TypeScript error is encountered:Type ((item: any) => string) is not assignable to type string | undefined
This indicates that the actual type definition does not match the documented behavior, as it only accepts string | undefined and not a function.
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/slyyzid1
Environment
windows
Angular version
19.0.0
PrimeNG version
v19
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The
optionDisabled
property should align with the documentation and accept either a string or a functionThe text was updated successfully, but these errors were encountered: