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
No known key found for this signature in database
GPG key ID: 771381EFFDB9EC06

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}`));