-
Notifications
You must be signed in to change notification settings - Fork 709
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
1.2-beta5 Modal Display Issue #182
Comments
I need some snippet here, anyway that means something is trying to update If you're attempting to have modal open by default you could use For ng-include: I will add test for this case, in the meanwhile it would be extremely useful to have the line number triggering the error. Thanks |
We're not attempting to have the modal open by default. I can try to get the line number, but last time I tested, we installed via bower and its all minified. I don't believe anything is updating All we are doing is including the modal html on the page:
In the cast of the |
I ve changed demo right now to use modals from remote templates and everything went fine.. that's strange. I'll update website demo soon so you can see eventual differences by yourself. |
Moving the modal template to a parent template seems to solve the Further update on this: I am initializing the
This removes the warnings but the modal refuses to toggle. The button that does this:
I have tried removing our custom directives Strange bit about this is that it works perfectly in web browser, but somehow fails in a cordova app. |
What |
Sorry now I noticed you already tried this. Could you try replacing ui-toggle with It may be related to ui-* trigger events |
So this is what I just tried. On the button:
In the controller:
The alert fires perfectly fine on mobile but the modal doesn't pop up. On desktop, both events happen as expected. |
Great this really helps. Could I ask one last question, does it happens with cordova on both IOS and Android? |
The device I tried on is a Nexus 5. And I have tried it in the iOS simulator on a Mac. In both, it exhibits the same behaviour. |
I've tried this on an actual iOS device and its the same as simulator. |
I believe I found the issue with the modals not being able to open. It is because of a difference in how our web and mobile apps are bundled. After fixing the discrepency, the modals are opening now. However, I still get the issue relating to
|
Ok, nevermind, @n9986 already fixed the childNodes issue, and I screwed it up agian. I think we're good to go here! |
I just tried this using a browser, I have the same issue. Its not fixed |
Please update the docs. and provide a solution for triggering modal window. |
+1 on getting the "Warning: Attempt to set uninitialized shared state: [modalName]". Any progress? |
Facing the same issue: whenever i try to fire modal / overlay it displays the below message
mobile-angular-ui.js code snippet (1644 - 1658) setOne: function(id, value) {
if (statusesMeta[id] !== undefined) {
var prev = values[id];
values[id] = value;
if (prev !== value) {
$rootScope.$broadcast('mobile-angular-ui.state.changed.' + id, value, prev);
}
return value;
} else {
/* global console: false */
if (console) {
console.warn('Warning: Attempt to set uninitialized shared state:', id);
}
}
},
var prev = values[id];
values[id] = value;
if (prev !== value) {
$rootScope.$broadcast('mobile-angular-ui.state.changed.' + id, value, prev);
}
return value;
} else {
/* global console: false */
if (console) {
console.warn('Warning: Attempt to set uninitialized shared state:', id);
}
}
}, My Html code
Kindly Assist. |
Anytime I try to display a modal on 1.2-beta5 I get this warning, and the modal never appears:
Warning: Attempt to set uninitialized shared state: modalName
Any ideas what is going on?
Also, when I include a modal in a ng-include template, it errors on mobile:
The text was updated successfully, but these errors were encountered: