Open gquintillan opened 2 years ago
Current Behavior
With Touch UI a change of the layer/mode does no longer lead to a page reload, except for mode 'disabled', therefore we should only use that mode on server-side (even with negation). Every other mode/layer needs to be treated on client-side.
This can be tested with the accordion component: https://github.com/adobe/aem-core-wcm-components/blob/1b0503ca5d79d5f30615cad939fd26c0a77f46d6/content/src/content/jcr_root/apps/core/wcm/components/accordion/v1/accordion/accordion.html#L17
Edit mode (OK):
Preview mode (KO):
Expected behavior/code The current wcmmode is taken into account.
Environment
Possible Solution Use !wcmmode.disabled instead, although it does not differentiate between wcmmode.edit and wcmmode.preview..
I also saw another solution, using initwcm.js, but I did a quick test and I think we will have the same problem:
Hi, @adobe @gquintillan Assign this issue to me I will update the HTML file.Thank you
This issue also occurs with embeddables like youtube etc and any custom embeddable written. Kindly suggest
Bug Report
Current Behavior
With Touch UI a change of the layer/mode does no longer lead to a page reload, except for mode 'disabled', therefore we should only use that mode on server-side (even with negation). Every other mode/layer needs to be treated on client-side.
This can be tested with the accordion component: https://github.com/adobe/aem-core-wcm-components/blob/1b0503ca5d79d5f30615cad939fd26c0a77f46d6/content/src/content/jcr_root/apps/core/wcm/components/accordion/v1/accordion/accordion.html#L17
Edit mode (OK):![image](https://user-images.githubusercontent.com/25983819/155153222-a9226fbd-8956-4426-82a9-1f1b4c9191d9.png)
Preview mode (KO):![image](https://user-images.githubusercontent.com/25983819/155153446-b3ff4c11-f367-46bc-91b6-c6822f47a452.png)
Expected behavior/code The current wcmmode is taken into account.
Environment
Possible Solution Use !wcmmode.disabled instead, although it does not differentiate between wcmmode.edit and wcmmode.preview..
I also saw another solution, using initwcm.js, but I did a quick test and I think we will have the same problem: