Component beforeedit
I have a listener for a component on a page . When i try to edit the component
<cq:listeners
jcr:primaryType="cq:EditListenersConfig"
beforeedit="function() {console.log('Test')"
afteredit="REFRESH_PAGE"/>
The after edit works fine and it refreshes the page after edit , but the before edit isnt working as expected . I have multiple components on the page and the new component should read a value from previous created component on the page .. I am trying to pick a value from last created component and use it in the newly created component. Am i missing something which is causing the beforeedit to fail , or is there any other way to achieve this?


