Edit mode doesn't work after setting Page_Refresh in afteredit | Community
Skip to main content
TrifaCh
Level 2
September 22, 2023
Solved

Edit mode doesn't work after setting Page_Refresh in afteredit

  • September 22, 2023
  • 3 replies
  • 1536 views

Hi Everyone,

 

I am writing to ask a problem about component editConfig. I tried to set the REFRESH_PAGE in the editConfig of different components. The page can be refreshed after editing.

 

 

Problem:

 The page will become uneditable after auto refresh which is triggered by the component's afteredit event. I tried this setting in different components, all component has this problem. Does this is a system bug or how should I fix this problem?

 

Some Notes:

Although the page become uneditable, but all setting and page cookies are in Edit mode setting and parameter. After switching to Preview and back to Edit mode, everything becomes normal.

 

Thank you very much.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sherinregi-1

Hi @trifach 

Couple of things here 

1) can you please check the console for any errors after the page refresh happens. 

2) can you check the same on we retail and see if the same issue is occurring.

 

Its most probably due to some custom code.

3 replies

sherinregi-1
Community Advisor
sherinregi-1Community AdvisorAccepted solution
Community Advisor
September 22, 2023

Hi @trifach 

Couple of things here 

1) can you please check the console for any errors after the page refresh happens. 

2) can you check the same on we retail and see if the same issue is occurring.

 

Its most probably due to some custom code.

TrifaCh
TrifaChAuthor
Level 2
September 22, 2023

Thank you for answer. Would you mind telling more about the second point ?
For the first one, I think the error might not be from the custom code. The error will also happen when I use the official component. Also, I try to compare the log with normal Edit mode loading which should be same with the problem one.

sherinregi-1
Community Advisor
Community Advisor
September 22, 2023

@trifach 

on the 2nd point as @aanchal-sikka  said you can install the wknd project on your vanila instance which doesn't have any custom code and see if the issue is coming.

PFB the link

 

https://github.com/adobe/aem-guides-wknd

 

 

aanchal-sikka
Community Advisor
Community Advisor
September 22, 2023

Hello @trifach 

 

You have mentioned this issue with a Single component as well in previous post.

 

Ideally, the components should stay editable on dialog save and Page refresh.

  1. Please install the WKND package to experience the default behavior. Preferably on an instance without the custom code
  2. With your app code, check with OOTB components only first. If they behave the same as WKND, troubleshoot the custom components.
Aanchal Sikka
kautuk_sahni
Community Manager
Community Manager
September 22, 2023

@trifach Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni