Skip to content

fix(AutoComplete): support IconField iconPosition - #370

Merged
melloware merged 3 commits into
mainfrom
agent/fix-autocomplete-icon-position
Jul 17, 2026
Merged

fix(AutoComplete): support IconField iconPosition#370
melloware merged 3 commits into
mainfrom
agent/fix-autocomplete-icon-position

Conversation

@sja-cslab

@sja-cslab sja-cslab commented Jul 17, 2026

Copy link
Copy Markdown
Member

Summary

  • accept iconPosition in AutoComplete default props
  • prevent IconField's injected iconPosition prop from reaching a DOM element
  • update all 56 shipped legacy themes so IconField spacing and icon placement work with AutoComplete

Root cause

IconField clones its child and supplies iconPosition. Unlike InputText, AutoComplete did not consume this inherited prop, so React emitted an unknown DOM-property warning. The legacy themes also targeted only direct .p-inputtext children, which excluded AutoComplete's nested input.

Provenance

Migrates primefaces/primereact#7447 in full.
Created By: @KumJungMin

Fixes #218

Validation

  • git diff --binary <upstream-base> <upstream-head> -- components/lib/autocomplete/AutoCompleteBase.js public/themes | git apply --reverse --check
  • npx eslint components/lib/autocomplete/AutoCompleteBase.js
  • git diff --check

@github-actions github-actions Bot added the Status: Needs Triage Issue or PR need investigating and labeling label Jul 17, 2026
@sja-cslab
sja-cslab marked this pull request as ready for review July 17, 2026 08:39
@sja-cslab
sja-cslab requested a review from melloware July 17, 2026 08:40
@sja-cslab sja-cslab self-assigned this Jul 17, 2026
@sja-cslab sja-cslab added bug Something isn't working and removed Status: Needs Triage Issue or PR need investigating and labeling labels Jul 17, 2026
@sja-cslab

sja-cslab commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

PR originally created by @KumJungMin Agent migrated the old one so we can use it in Mantle UI

melloware
melloware previously approved these changes Jul 17, 2026
Comment thread components/lib/autocomplete/AutoCompleteBase.js Outdated
@melloware

Copy link
Copy Markdown
Collaborator

@KumJungMin would love to have you involved in this project!

@melloware
melloware merged commit dc411b7 into main Jul 17, 2026
5 checks passed
@melloware
melloware deleted the agent/fix-autocomplete-icon-position branch July 17, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants