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

Datepicker returns focus to input on close #3534

Closed
kurthamilton opened this issue Jan 8, 2020 · 2 comments
Closed

Datepicker returns focus to input on close #3534

kurthamilton opened this issue Jan 8, 2020 · 2 comments

Comments

@kurthamilton
Copy link

Bug description:

When opening a datepicker from an input focus, the datepicker returns focus to the input, causing it to re-open.

Link to minimally-working StackBlitz that reproduces the issue:

https://stackblitz.com/edit/angular-ajzswx

(open console to see event output)

Versions of Angular, ng-bootstrap and Bootstrap:

Angular: 8.2.14
ng-bootstrap: 5.1.5
Bootstrap: 4.4.1

Desired behaviour

Open a datepicker popup on the input receiving focus, close datepicker popup as per the configurable behaviour (e.g. on click outside input / popup).

I have tried searching for an alternative way to achieve this, so apologies if this is a duplicate.

@peterblazejewicz
Copy link
Contributor

@kurthamilton
I think this is already tracked as #3483

@kurthamilton
Copy link
Author

@peterblazejewicz Thanks. Obviously I didn't look hard enough...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants