Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputGroup support for input components with wrappers #1548

Closed
cagataycivici opened this issue Sep 7, 2020 · 4 comments
Closed

InputGroup support for input components with wrappers #1548

cagataycivici opened this issue Sep 7, 2020 · 4 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@cagataycivici
Copy link
Member

InputGroup should support components with wrappers like dropdown, autocomplete, not just simple input fields.

@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Sep 7, 2020
@cagataycivici cagataycivici added this to the 5.0.0-rc2 milestone Sep 7, 2020
@bhkangw
Copy link

bhkangw commented Aug 12, 2022

Hi @cagataycivici @mertsincan I see this enhancement was closed as completed but I don't see support for components like dropdown in InputGroup. Played around with p-inputwrapper but no luck.

Still only able to get Radio and Checkbox working.. could you please advise?

@melloware
Copy link
Member

melloware commented Aug 13, 2022

@bhkangw I am using PrimeReact 8.3.0 and it works fine with Dropdown?

Code:

<div className="p-inputgroup">
       <span className="p-inputgroup-addon">
                 <i className="pi pi-user"></i>
      </span>
      <Dropdown value={selectedCity1} options={cities} onChange={onCityChange} optionLabel="name" placeholder="Select a City" />
</div>

Screenshot:
image

@bhkangw
Copy link

bhkangw commented Aug 15, 2022

@melloware thanks for the code and screenshot.. sorry I should have clarified - I'm having problems combining two inputs eg InputNumber and Dropdown together. Did you have any success?

@melloware
Copy link
Member

I don't think that is the intention of InputGroup to combine two full input components together? ITs about decorating one input component: https://primefaces.org/primereact/inputgroup/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

4 participants