-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[Tabs] Input focus breaks sliding animation #5238
Comments
@jelbourn - Are you ok w/ exposing the |
@amcdnl don't quite follow what you mean |
@jelbourn - |
I wouldn't be a fan of that API. What's the underlying problem? |
The user wants the ability to set focus once the animation has completed. |
Doesn't necessarily need to be set once the animation is complete. Thats just one way to do it. The issue is, thats it's not possible to set the focus at all. Except for some dirty workarounds described above. I could imagine the underlaying issue could be the inputs focus animation breaking the tabs sliding animation... just a guess. |
Something like |
@jelbourn - let me know if you want me to move forward with that API. |
Matias said that such a feature would be reasonable to add to animations in general, but it wouldn't be any time soon. I suppose |
Confirmed |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug (or feature request)
What is the expected behavior?
Tab animation should run flawless.
Or an alternative way should be provided to handle the focus when browsing tabs
What is the current behavior?
If the focus is set to an element in the new visible tab, the animation breaks
What are the steps to reproduce?
http://plnkr.co/edit/JOaZUON0G7JTBcEWlZTJ?p=preview
What is the use-case or motivation for changing an existing behavior?
Handle input focus when browsing tabs
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
4.2.3 / beta.6, at least chrome and opera
Is there anything else we should know?
Slide from the left side seems to work, slide from the right side is broken when focus is set.
Setting the focus within a 500ms timeout works, but has other problems like when users switches the tabs to fast (second tab-switch within the 500ms timeout). Also the 500ms would be hard coded in the component host and could not be compatible to future tab animation implementations.
Providing a hook to @translateTab.done could be a possible quick-fix.
The text was updated successfully, but these errors were encountered: