Skip to content

Modal data is "cached" on mobile but not desktop #7554

Open
@ThatGravyBoat

Description

@ThatGravyBoat

Description

When opening a modal with the same id on desktop and mobile they have a different behavior, on mobile it will show the data for the first time that modal id was seen and on desktop it will show the data that was actually sent.

Steps to Reproduce

  • Create a few buttons that opens a modal set the modal components to a paragraph with random consistent text for that specific button.
  • Open them on desktop and every time you open it it will be whatever you set that specific button to but if you open it on mobile it will be the content of the first button you clicked for all buttons.

Example that will reproduce it with discord.js https://gist.github.com/ThatGravyBoat/e23b90767d30c52eb7a8c68724d8300c

Expected Behavior

That desktop and mobile both have the same behavior of always showing what the bot sent.

Current Behavior

Desktop is what the bot sent, mobile is what the bot sent the first time only

Screenshots/Videos

No response

Client and System Information

App: 278.1 (76944) stable;
Manifest: "955b4d1312029dfec41a67c7b3b55018";
Build Override: N/A;
Device: iPhone15,4 OS 17.6.1;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions