Skip to content

Second modal cache issue #531

@drSun

Description

@drSun

I'm using the Wire Elements Pro modal and have encountered a problem:

  1. I open the first modal and from there, I open a child modal that displays a parameter from the database.
  2. I close the child modal and change the same parameter in the form in the first modal.
  3. I open the child modal again from the first modal and see the old cached version of the parameter.

I've tried various options, updating in mount(), etc., but nothing works with the child modal, mount() method is called at first opening only, not next openings; the modal seems completely cached. I could create an Update button and manually click it, calling the updateParam method, and then, yes, the value will change.

It would be great to call this updateParam method every time the child modal is opened, but the documentation doesn't explain how to do that.

Perhaps this is a bug, and is there a way to disable this strange caching of the second modal window?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions