Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork126
Open
Description
When clicking on the arrow-icon[data-select="set-language"] of the language selection dropdown the action will break with:
Uncaught TypeError: t.dataset is undefined
The erroneous code isthis piece right here:
// Fix for select labelsthis.engine.on('click','[data-select]',()=>{conste=document.createEvent('MouseEvents');e.initMouseEvent('mousedown');this.engine.element().find(`[data-action='${this.dataset.select}']`).first().dispatchEvent(e);});
I'm guessing that thethis inside the arrow function does not refer to the actual HTMLElement of the icon.
Metadata
Metadata
Assignees
Labels
No labels