Modal Component Not Hidden Despite Setting hidden Attribute to true

Goal: Hide a modal component in the application.

Steps to Reproduce:

  1. Select the modal component.
  2. Set the hidden attribute to true for the component.
  3. Run the application.

Expected Behavior: The modal component should disappear from the user interface once the hidden attribute is set to true.

Actual Behavior: Despite setting the hidden attribute to true, the modal component remains visible in the interface. Specifically, the button text within the modal is still displayed.

Button text is visible:

Hello @TECH_ALMOND!

That is a very odd bug. I tried to reproduce the button on my modal disappears when I close/exit out of the modal.

Any chance you can DM me a video of you opening and closing the modal?

If you could share a screen shot of how the modal is set up that might also provide clues as to why the button isn't being hidden with the rest of the modal

For reference, this is how I set up my modal and the buttons to open and close it.

See if setting yours up like this solves the issue. Is the modal open when you hit the play button to "navigate to app in user mode"?

Hi Jack,

Thanks for your answers. Just to clarify, the modal is the old version, so there isn’t a button that opens it—everything is contained within the same component. It’s strange because this issue only started appearing a week ago. If you'd like, I can DM you with more details.

Thanks again!

@TECH_ALMOND Thank you for the details!

If it was working and suddenly stopped I am going to guess there was a patch that caused some changes. Definitely DM me with more details.

I can flag a bug report internally for this as well. Best advice for the short term would be testing out the newest modal component to see if it can be used for your needs :sweat_smile:

Hi @TECH_ALMOND! When a hidden component is selected in the editor, we show the component in its non-hidden state in order to make it easier to visualize updates. The bounding box tag shows a hidden icon (the eye with a line through it) when this is the case. If you de-select the component, the component should hide again. It will also be hidden in preview mode.

Screenshot 2024-08-26 at 1.56.39 PM

Screenshot 2024-08-26 at 1.58.28 PM

I am noticing a bug however where sometimes the button text still appears when the component is hidden if WidgetGrid is enabled -- this seems like it may be what you're describing :thinking: Do you have WidgetGrid enabled by chance? You can try toggling it off in the toolbar at the bottom of the screen to see if that corrects the issue.

Screenshot 2024-08-26 at 2.01.43 PM

Screenshot 2024-08-26 at 2.03.02 PM

2 Likes

Hello @TECH_ALMOND,

It looks like the task for this fix has been marked as done. It should be getting merged into our next update/rollout and live on cloud shortly!

Thanks, it's fixed

1 Like

@TECH_ALMOND Great to hear!

Let me know if this issue resurfaces or if you have any other concerns!

:grin:

Hi Jack, how are you?
The same issue resurfaced. Tell me if you need more details but visually is totally the same.

Hi @TECH_ALMOND oh no I am sorry to hear that.

Very odd, are you still using the old modal or have you tried switching to the new modal component?

Let me test things out on the new modal component and see if I can reproduce the button text staying visible even when the modal's hidden property is set to true!

It looks like on the new modal, when I set hidden to be 'true' the side panel on the left side will show the hidden symbol (eye with line through it) to let me know the UI has picked up on the changes that the modal should be hidden.

CleanShot 2024-10-02 at 14.15.20@2x

Is this appearing for you as well? If you are on the old modal I think the best solution is to move to the new 'Modal Frame' component as that should be working as intended with hiding logic :slightly_smiling_face:

I'm using the old modal. The bug was previously resolved, but now it has reappeared.

Ah that is very odd that it was resolved and is now back.

I can relay that information to our engineering team, they might have pushed some changes.

Is it possible for you to upgrade your component to the new modal? That should definitely eliminate this issue :crossed_fingers:

It’s not something we can accomplish in one step, as we have multiple apps and modals involved. Upgrading a component isn’t so straightforward when there are many.

Ok, I see. My apologies, let me know if there is anything else I can do to help.

This is so odd that the issue went away and then came back :sweat_smile:

One of our engineers tried to reproduce the bug and it wasn't showing up for us. Super odd.