Pop-up Close Action #493
Replies: 4 comments 5 replies
-
Hey, @Clooos, I saw that after (or around) the time I posted this you added the guideline to use discussions -- would you rather I close this and open a discussion instead? |
Beta Was this translation helpful? Give feedback.
-
I just tested the newest beta and this works pretty well, thank you @Clooos! It's now possible to navigate to other pop-ups on other views/pages and essentially nest pop-ups, which really helps organizationally. There is an issue where since the first pop-up didn't actually "close" before navigating, its open state gets cached so it never animates open again. Maybe an option to reset the state if the action is set to Navigate, and process the reset before running the action? |
Beta Was this translation helpful? Give feedback.
-
No, the issue is that, in my example, if you go to a remote popup, and then navigate back to the Room popup, the Room popup will never animate again. It'll always start "opened", as it technically never "closed" before switching to the Remote popup. Not animating the remote popup is a good idea, though, it'll make it look more seamless. I'm doing this more as an organizational thing, as I have much more than the two pages I used as an example. Sticking everything in one view makes it super unusable for editing, and does actually make it take longer to initially load the dashboard on mobile devices. Also, I still want to use popups for the remote, as it looks better on mobile devices than just using a normal page/view, so just sticking them all on one view isn't great on a mobile phone or something with a narrow screen. |
Beta Was this translation helpful? Give feedback.
-
Actually, I've got some strange issues with pop-ups not animating correctly after being closed even when everything is on the same page, so that might be related to #636. I would still have the issue with the state being messed up when navigating between pages/views, but the animation issue might be caused by a bug in the latest beta. |
Beta Was this translation helpful? Give feedback.
-
Hi there!
Background
I'm using Bubble Card in an, admittedly, non-standard way. As an example, I've got two views:
Home
Kitchen
From Home, I can launch into a pop-up in Kitchen simply by targeting "kitchen#popup" which correctly flips over to the Kitchen view and opens up the Bubble Card matching "#popup".
From Kitchen#Popup, I can then add a button to go back to Home simply by targeting the Home view, or even go back to a popup in Home by targeting "home#popupHome".
All of this works great (and it's not mentioned explicitly, so it's fantastic that it works).
The issue lies in what happens if I were to close the "kitchen#popup" -- I would end up on the Kitchen view, when I want to end up back at Home.
Feature Request
Would it be possible to add a configurable action (On Close, etc.) so I can set a navigation path when the card is closed? That way I could have a card kick me back to Home when closed, rather than setting up a bunch of extra "Back to Home" buttons.
In a nutshell, I'm looking for:
A configurable Close Action that works for all close scenarios, for example:
Hitting the close button
Tapping empty space to close a card
Swiping down, etc.
By being able to set a Navigation Path when closed, it would make it possible to essentially navigate between cards multiple-levels deep, just by keeping track of what URL path a card should kick you back to when closed. This would basically make it possible to have "child popups" that can only direct back to their parent popup.
Beta Was this translation helpful? Give feedback.
All reactions