-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels