You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dialog close() from <input> event no longer works. #4287
I have a dialog with an Input. When the user presses ENTER, the dialog closes.
My project is using builds from github.com/angular/material2-builds.git
This was working about 2 weeks ago, but when I last updated it broke.
So commit somewhere between April 17-April 25 caused this problem.
I did a little bisect of the material2-builds to help narrow it down, and it looks like there were two regressions with using keydown to close the dialog:
It's because Material restores focus immediately, instead of waiting for the animation to finish. I've opened a PR that should fix it (#4329). Meanwhile you can work around it either by closing on keyup or disabling the open button while there's an open dialog.
Activity
willshowell commentedon Apr 26, 2017
I did a little bisect of the material2-builds to help narrow it down, and it looks like there were two regressions with using keydown to close the dialog:
Regression 1
This slight regression can be attributed to #3774
Regression 2
The only MdDialog commit between this merge range is #3892 and is probably your culprit
// cc @crisbeto
fix(dialog): restoring focus too early
crisbeto commentedon Apr 29, 2017
It's because Material restores focus immediately, instead of waiting for the animation to finish. I've opened a PR that should fix it (#4329). Meanwhile you can work around it either by closing on
keyupor disabling the open button while there's an open dialog.fix(dialog): restoring focus too early (#4329)
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.