-
Notifications
You must be signed in to change notification settings - Fork 241
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
Vex modals not working as expected #121
Comments
I think the blue border is actually the focus element, I think it sets the focus and run's the animation on the same VM turn. This doesn't happen in FireFox on my mac but it does on Chrome. I don't know if it's an issue with Chrome or the animation module in angular 2. It disappear once you click anywhere, even lets say on the developer console. It implies that some sort of refresh is missing on chrome or Angular animation. I'll try to investigate. EDIT: Not related to animation module in angular, this is pure CSS animations. |
It happens on Safari as well. |
pushed a workaround. The focus management is basic at this point, a practical implementation will be to identify elements on the dialog and set the focus on the right one. For example, if it's a prompt focus the input, otherwise focus the last button (e.g: OK) otherwise focus the dialog window. This requires a central unit to manage focus having children publishing to it since a child component has reference to it's elements... then it needs to prioritise it and decide... not so simple :) |
IMPORTANT: Please provide a sample using http://plnkr.co/edit/iiQett?p=preview
[*] bug report
[ ] feature request
[ ] question about the decisions made in the repository
http://plnkr.co/edit/6radRdh9NvZOQJh7SWb2?p=preview
In the Vex theme (even on your demo page), when a modal container opens, a blue outline of the final dialogue position shows up first and then the dialogue is animated into the container.
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/iiQett?p=preview).
Please see:
http://shlomiassaf.github.io/angular2-modal#/vex-demo
Dialogue should be placed and animate correctly
Functionality is not working properly
All
The text was updated successfully, but these errors were encountered: