mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
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:
@@ -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}`));
|
||||
|
||||
Reference in New Issue
Block a user