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

Add applyFocus() method to dropdown #886

Closed
cagataycivici opened this issue Sep 12, 2016 · 2 comments
Closed

Add applyFocus() method to dropdown #886

cagataycivici opened this issue Sep 12, 2016 · 2 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@cagataycivici
Copy link
Member

In non-editable mode, focuses to the container and in editable mode, focuses the input element.

@cagataycivici cagataycivici added the Type: New Feature Issue contains a new feature or new component request label Sep 12, 2016
@cagataycivici cagataycivici added this to the 1.0.0-beta.16 milestone Sep 12, 2016
@cagataycivici cagataycivici self-assigned this Sep 12, 2016
@cagataycivici cagataycivici changed the title Add focus() method to dropdown Add applyFocus() method to dropdown Sep 12, 2016
@cagataycivici
Copy link
Member Author

<button pButton type="button" (click)="dd.applyFocus()" label="Focus"></button>

    <p-dropdown #dd [options]="cars" [(ngModel)]="selectedCar" [style]="{'width':'150px'}" editable="editable"></p-dropdown>

cagataycivici pushed a commit that referenced this issue Sep 12, 2016
@lebnic
Copy link

lebnic commented Jul 28, 2017

In filter mode, it does not work very well; was expecting to be able to right away start typing in "search/filter" box...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

2 participants