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

NbAutocompleteDirective : input to disable focus on input on value change #2355

Closed
1 of 2 tasks
jornetsimon opened this issue May 10, 2020 · 1 comment
Closed
1 of 2 tasks
Assignees
Projects

Comments

@jornetsimon
Copy link
Contributor

jornetsimon commented May 10, 2020

Issue type

I'm submitting a ... (check one with "x")

  • bug report
  • feature request

Issue description

Current behavior:
When a value is set to the input bound to an Autocomplete, and handled by writeValue(), the input is focused.

Expected behavior:
A new NbAutocompleteDirective boolean input to manage this behaviour.

Steps to reproduce:

Related code:
autocomplete.directive.ts

@Input() focusOnInputOnValueChange: boolean;
...
handleInputValueUpdate() {
 if (this.focusOnInputOnValueChange) {
  this.hostRef.nativeElement.focus();
 }
}
@yggg yggg added this to To do in Now via automation Aug 31, 2021
@katebatura katebatura self-assigned this Sep 6, 2021
@katebatura
Copy link
Contributor

Closing as duplicate of #2401

Now automation moved this from To do to Done Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Now
Done
Development

No branches or pull requests

2 participants