Fixes #137512 by removing the href to #.

Because the handler uses MOUSE_DOWN rather than CLICK, prevent default does not have the desired effect. The navigation causes a zoom reset.
This commit is contained in:
Henning Dieterichs
2021-11-30 17:27:04 +01:00
parent 585cf37801
commit d477eb1ee3

View File

@@ -55,7 +55,6 @@ export class HoverAction extends Disposable {
this.actionContainer = dom.append(parent, $('div.action-container'));
this.action = dom.append(this.actionContainer, $('a.action'));
this.action.setAttribute('href', '#');
this.action.setAttribute('role', 'button');
if (actionOptions.iconClass) {
dom.append(this.action, $(`span.icon.${actionOptions.iconClass}`));