-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
disable-pointer-events not being removed after transition #1383
Comments
Would you still be able to provide a codepen that would replicate the issue? Between your description and code it'll help us narrow down the issue, thanks. |
Hi, I've tried recreating the 'perfect storm' to replicate the bug in a snippet but finding it difficult - I will try and get some time away from the normal work to put something together. |
Thank you for submitting the issue, but until we're able to replicate this I'm going to close the issue. Please feel free to reopen if you find more information. Thanks. |
I am experiencing this issue. To replicate, have $ionicLoading.show() and then the transition occurs before executing $ionicLoading.hide(). It eventually hides, but the removal of "disable-pointer-events" does not occur. |
Nevermind. That wasn't really the issue at all. I have turned off all animation between transitions, and I am still getting a stuck "disable-pointer-events". This consistently happens after my login screen. |
I have fixed it by being careful with changing between states. It was occurring whenever I had a state that immediately redirected to a different state before the previous animation was finished. For example: .controller('StartCtrl', function($scope, $state,
Session) {
ionic.Platform.ready(function() {
if (Session.user()) {
$state.go('home');
} else {
$state.go('welcome');
}
});
}) So yeah... don't redirect immediately after a previous redirect! |
Hello I am experiencing same issue. After transition from a login page I can't tap on any buttons but side menu button.
So here I go from login state to app.main-page state which is a child of app state.
Here is the html of child app.main-page:
So I my problem is that pointer events are disabled only on a child page of a parent. I will try to put a codepen together to try to replicate the issue. |
Also changing from |
This is still an issue unfortunately and can't find the solution :/ |
I too am having this issue. This occurs when I have a popover open which has a link to a modal. function showSwitchUserModal(e) {
e.preventDefault();
vm.staffPopover.hide();
$timeout(function(){
vm.switchUserModal.show(e);
}, 100);
} or of course use the promise function showSwitchUserModal(e) {
e.preventDefault();
vm.staffPopover.hide().then(function(){
vm.switchUserModal.show(e);
});
} |
We are experiencing a bug:
When automatically transitioning from our login to home page (on successful login), the page elements are un-clickable.
We noticed that the disable-pointer-events class was still applied to the body.
From what I can understand in the code, this class is applied at the start of an animation, and then removed after it.
Given that this behaviour disappears as soon as we remove the animation parameter from the body tag, it leads me to believe that the animation code is not removing the class as intended.
When viewing in a browser, refreshing the page makes elements interactive again.
We have place a temporary fix to manually remove that class from body on stage change success, but obviously would prefer things just to work as intended.
I apologise for not writing a codepen, It's hard to replicate the issue on a code snippet.
The text was updated successfully, but these errors were encountered: