-
Notifications
You must be signed in to change notification settings - Fork 876
panel active not disabled between views #873
Comments
This was an issue posted before, and I don't think it was ever resolved. However, I did link a comment to an existing pull request posted in April #850 . the update to af.ui.js adds to the runTransition function and removes the active class if found. it works, but it requires a transition to be set when calling the panels, and not sure if it's the best solution. |
Just added the code.. works great. Thanks so much! |
The side effect is that it hides the background panel when calling a panel within a modal view. Not a big deal though.. I will look into fixing that in a bit |
@SeekChange @tahoetomahawk - can either of you put up demo's showing the bug and how it's resovled with that pull request/ I'll be happy to merge it. |
I used the pull request code as a workaround. It's not quite a resolution On Mon, Jun 8, 2015 at 10:42 AM, Ian Maffett [email protected]
|
@tahoetomahawk - I'm fine accepting the pull request that is there. I've just been asking for demos/tests to show the error and that it has been resolved. |
I will include a page with multiple views that shows the issue later this On Mon, Jun 8, 2015 at 12:59 PM, Ian Maffett [email protected]
|
@tahoetomahawk : Please upload your solution. I have tried code from #850 but problem is still there. |
@manish-stack - no one has given me demos/tests/etc |
Hi guys, On Mon, Jul 27, 2015 at 7:32 AM, Ian Maffett [email protected]
|
Folks, this is really a huge problem we ran into. However, after including these lines from the pull request that @tahoetomahawk mentioned (where were removed in this request, for whatever reason???) at the beginning of if (typeof previous !== "undefined" && previous !== null) {
if(previous.find) {
setTimeout(function(){
previous.find(".active").removeClass("active");
},500);
}
} |
@jdinse I appreciate it's a huge problem but look at my previous comments. Not one person has given me a demo to test against. All people say is "it doesn't work fix it". If this fixes your case, open up a pull request and I'll merge it, but you need a demo/test to show it working. |
Jay, that work around was not sufficient as the panelunload was not being On Wed, Jul 29, 2015 at 6:49 AM, Jay Dinse [email protected] wrote:
|
@tahoetomahawk I found out that it is caused by the fifth Parameter (anchor) in function loadContent(). It changes the current view to what the anchor belongs to for the transition. Therefore it tries to unload the wrong view. Look at lines 1014 ff. in function loadDiv():
So the workaround for me was to not use these fifth parameter right now. |
Good find, thanks!! On Thu, Aug 27, 2015 at 3:21 AM, Jay Dinse [email protected] wrote:
|
When calling loadContent between views, the last active panel in the view stays active. There will be 2 active panels.
The panel that does not deactivate never will become deactive when transitioning between pages.
This happens by clicking a footer link <a href="#somepage".. or by using $.afui.loadContent
The text was updated successfully, but these errors were encountered: