We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 611666f commit c6d73baCopy full SHA for c6d73ba
src/main/resources/META-INF/frontend/fc-applayout/fc-menuitem.js
@@ -122,6 +122,12 @@ class MenuItem extends ThemableMixin(PolymerElement) {
122
};
123
this.addEventListener('focus', listener);
124
this.addEventListener('click', listener);
125
+ this.addEventListener('click', (event) => {
126
+ //https://stackoverflow.com/a/39245638/1297272
127
+ //this won't work if the browser doesn't supply path information (IE11)
128
+ var path = event.path || (event.composedPath && event.composedPath());
129
+ if (this.href && path && path[0].id!="label") this.shadowRoot.querySelector("a#label").click();
130
+ });
131
this.addEventListener('mousedown', (event) => {
132
if (event.button==1) {
133
event.preventDefault();
0 commit comments