primefaces / primefaces/primereact
Warning: React does not recognize the `iconPosition` prop on a DOM element. (v10.8.3)
Open
Nobody has claimed this yet.
Type: Bug
- Dominant language
- CSS
- Stars
- 8.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
React does not recognize the iconPosition prop on a DOM element when iconPosition prop in IconField is used with AutoComplete component.
Reproducer
https://stackblitz.com/edit/vitejs-vite-o12afk
System Information
react: 18.3.1
primereact: 10.8.3
typescript: 5.6.2
Steps to reproduce the behavior
- Go to issue reproducer link
- Inspect the console.
Expected behavior
AutoComplete and IconField are not composable. We should be able to combine any React component with any other component seamlessly.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked StackBlitz reproducer and inspect how IconField and AutoComplete are composed. Trace where iconPosition reaches the DOM element, then verify that the console warning is gone and the combined components still behave as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100