[Feature update] Group Focus behavior

Hello everyone!

Excited to announce that we have finally addressed some frustrating Group Focus behavior. Before today, it was impossible to click on the same element to open and close a group focus element. This was because group focus elements have auto-close behavior where if any area outside of the group focus is clicked, the group focus is closed. As such, if an element that triggers a workflow to show a group focus is clicked, the auto-close behavior would kick in first, and then the workflow would run, making it impossible to actually hide that group focus.

But no longer! The same action element can now be used to open or close a group focus element. Best practice is to use a toggle workflow action on the action element to simply open & close the group focus.

The auto-focus behavior outside of the action element still exists as it does today so there should be no changes to existing group focus set ups.

Let me know if yā€™all have any questions. Happy Bubbling!

43 Likes

Nice one!

Yesss!!! Tiny, but very trigger thing-- thanks Nick!

Every little thing counts! Keep em coming!

Great ! Thanks !!!

This is awesome! I have been avoiding group focuses for this reason. I was actually planning to wrestle with one today and just saw this happy update!

2 Likes

Hey @nick.carroll

It does not work on mobile IĀ“m afraid after a few tests.

Can your team implement that it works the same on mobile?

Thank you so much.

Thank you! This whole time i had to use a conditional which set the button as unclickable when the group focus was visible, so the workflow would not trigger. It did the trick but the cursor wasnā€™t a clicker when hovering over the button which was not great for UI.
This is so much better thanks.

1 Like

Are you looking on a mobile browser, PWA, or mobile wrapper?

1 Like

Hey @nick.carroll

Mobile browser.

1 Like

there was a easy workaround for this - we just did - if group is shown button is not clickable so it acted like it should

1 Like

Nice! Thanks :slight_smile:

What about not close the group focus when clicking outside him? Can this be done?

1 Like

Create a groupfocus background transparent,then your main group have a white background , and for the remainders put some grey color make opacity %40. So, basically when users click to close they are not clicking the under-beneath rather they are clicking the grey group thus not closing

This also happened to me. I used GroupFocus for the hamburger menu on mobile, and it didnā€™t toggle; it only showed the menu when I clicked the hamburger icon (it didnā€™t close it).

I spent a decent amount of time debugging this, and it turns out that the issue was the ā€œAnimate an elementā€ workflow step I added after ā€œToggle GroupFocusā€. When I removed the animation, the toggle worked :raised_hands:

@nick.carroll Iā€™m looking for this behaviour too.

It could be something as simple as a checkbox ā€œDonā€™t close when clicking outsideā€ in the property editor that can be changed through conditionals.

In certain situations, for example when a user is going through an onboarding flow, you might not want the user to be able to close the Group Focus, while still needing the remaining behaviour of it.

you can just create an custom state in the button, lets call it ā€œstateā€ with a number value. When click the menu button, if state its 0, it changes to 1. And if state is 1 it changes to 0 (you can make this with the workflow editor, so simple).

After you can add a ā€œDo when something happensā€ at the workflow editor. So you can put something like: Only when button state is 1. And add a show an element configured to the focus group. You have to set this to ā€œevery timeā€ instead of just once.

So allways when the button state is 1 focus group will be visible even if you click outside the focus group. It only will disapear when button state is 0 (just if you click the button again as whe set before)

Hope this helps!

Thanks for your suggestion @produccion1 ā€“ I tried to set it up but canā€™t get it to work. The problem is that thereā€™s built-in functionality that closes the group focus when clicking outside of it and there doesnā€™t seem to be any way to block this from happening regardless of what over functionality is applied.

Do you have a working expample?