-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat(libs): Focus search field on app load #677
Conversation
Affected libs:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It looks like you unintentionally removed the line that was doing the focus, but I tested with the line re-added and it works well. Also I think this behavior should be configurable and disabled by default, otherwise it might disrupt the experience in other contexts e.g. the web component or the map viewer.
@@ -109,6 +109,7 @@ export class AutocompleteComponent | |||
} | |||
|
|||
ngAfterViewInit(): void { | |||
this.inputRef.nativeElement.focus() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you removed this line in the other commit, but you still need it otherwise the field is not focused
b5abf7d
to
95d5b8c
Compare
95d5b8c
to
9d57305
Compare
and resolve expression has changed after it was checked - error see here: https://angular.io/errors/NG0100 and make focus configurable and diasbled by default
9d57305
to
f360092
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
Add manual change detection as described here