Popup Auto Closure #758
-
Hi - After a very long time of struggling with this - I managed to get it working , I'm sure that this is probably not correct, but does work with a small issues it seems - whereby the popup would close unexpectedly if you go back to the popup within the 5 seconds.
I was hoping to finally get this sorted, with a push in the right direction any help will be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Have you tried this (adapted from #496 with the knowledge of #535)? action: function (item, entity) {
this.$scope.entityClick({}, item, entity);
this.$scope.popupTimeout = $timeout(function () {
this.$scope.closePopup();
}, timeout_in_millliseconds);} Should solve your issue, because |
Beta Was this translation helpful? Give feedback.
-
Solution: action: function (item, entity) {
this.$scope.openPopup(item, entity);
this.$scope.popupTimeout = setTimeout(function () {
this.$scope.closePopup();
}.bind(this), 5 * 1000);
}, |
Beta Was this translation helpful? Give feedback.
Solution: