Jump to content

[Bug 4.6.10] IN_DEV mode and editing YesNo widgets settings not working sometimes


Go to solution Solved by Matt,

Recommended Posts

I noticed that sometimes the YesNo widget settings in the app developer center don't work. To reproduce follow this steps:

  1. Let's use the CORE application, open the developer center and go to the WIDGETS tab.
  2. Click the edit button for the activeUsers widget (or any other really).
  3. Try editing the Allow widget re-use? or Embeddable by Pages app settings; they'll work just fine.
  4. Close the settings modal popup without saving the changes (either clicking the X button or clicking somewhere else in the page).
  5. Click the edit button for the stats widget (or any other really).
  6. Try editing the Allow widget re-use? or Embeddable by Pages app settings; the settings can't be edited.

 

To be able to edit the settings again you have to re-open the first widget's settings (activeUsers in the example above). After clicking the save button the modal popup gets destroyed and the settings in the next plugin can not be edited just fine. (Well, another way to fix the issue is to simply reload the page and open right away the widget you want to edit.)

Edited by teraßyte
Link to comment
Share on other sites

  • 2 months later...
On 2/24/2022 at 2:05 PM, IPCommerceFan said:

Yes!  I ran into this when building a plugin for the Dripcampaigns application.  Reloading the page to clear the (cached?) modal information was the only way to fix it.   It seems to be a universal problem with the way these toggles are handled.  Thanks for putting together the reproduction case.

 

On 2/24/2022 at 10:18 AM, teraßyte said:

I noticed that sometimes the YesNo widget settings in the app developer center don't work. To reproduce follow this steps:

  1. Let's use the CORE application, open the developer center and go to the WIDGETS tab.
  2. Click the edit button for the activeUsers widget (or any other really).
  3. Try editing the Allow widget re-use? or Embeddable by Pages app settings; they'll work just fine.
  4. Close the settings modal popup without saving the changes (either clicking the X button or clicking somewhere else in the page).
  5. Click the edit button for the stats widget (or any other really).
  6. Try editing the Allow widget re-use? or Embeddable by Pages app settings; the settings can't be edited.

 

To be able to edit the settings again you have to re-open the first widget's settings (activeUsers in the example above). After clicking the save button the modal popup gets destroyed and the settings in the next plugin can not be edited just fine. (Well, another way to fix the issue is to simply reload the page and open right away the widget you want to edit.)


Add `data-ipsDialog-destructOnClose` attribute to your elements.

<a href='....' data-ipsTooltip _title="Edit" class="ipsButton ipsButton_verySmall ipsButton_positive " data-ipsDialog data-ipsDialog-destructOnClose data-ipsDialog-title='....'>

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...