Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
fix options menu element selection
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar committed Aug 8, 2020
1 parent 50efa8d commit 1bdce99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class CustomHeader {
listenElement.setAttribute('onClick', ' ');
if (clickElement.nodeName === 'MWC-LIST-ITEM') {
listenElement.addEventListener('tap', () => {
clickElement.dispatchEvent(new MouseEvent('tap'));
clickElement.dispatchEvent(new MouseEvent('click', { bubbles: false, cancelable: false }));
});
}
listenElement.addEventListener('click', () => {
Expand Down

0 comments on commit 1bdce99

Please sign in to comment.