We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I click the gear icon in the pile here https://main--exlm--buuhuu.hlx.page/en/dirk-demo nothing happens.
That seems to be related to this piece of code: https://github.com/adobe/aem-experimentation/blob/main/src/preview.js#L52-L75
const actions = typeof header === 'object' ? (header.actions || []).map((action) => (action.href ? `<div class="hlx-button"><a href="${action.href}">${action.label}</a></div>` : `<div class="hlx-button"><a href="#">${action.label}</a></div>`)) : []; // ... const buttons = [...popup.querySelectorAll('.hlx-popup-header-actions .hlx-button a')]; actions.forEach((action, index) => { if (action.onclick) { buttons[index].addEventListener('click', action.onclick); } });
While the only item in header.actions has an onclick handler, the html string in the actions array does not.
header.actions
actions
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I click the gear icon in the pile here https://main--exlm--buuhuu.hlx.page/en/dirk-demo nothing happens.
That seems to be related to this piece of code: https://github.com/adobe/aem-experimentation/blob/main/src/preview.js#L52-L75
While the only item in
header.actions
has an onclick handler, the html string in theactions
array does not.The text was updated successfully, but these errors were encountered: