primefaces / primefaces/primereact

Warning: React does not recognize the `iconPosition` prop on a DOM element. (v10.8.3)

Open
#7,219 15 comments 3 reactions 0 assignees View on GitHub

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
  1. Go to issue reproducer link
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.