提交 4ea13164 编写于 作者: J Joao Moreno

fixes #45966

上级 01eeace4
......@@ -12,7 +12,7 @@ import { StandardKeyboardEvent } from 'vs/base/browser/keyboardEvent';
import { KeyCode } from 'vs/base/common/keyCodes';
import { Color } from 'vs/base/common/color';
import { mixin } from 'vs/base/common/objects';
import { Event, Emitter } from 'vs/base/common/event';
import { Event as BaseEvent, Emitter } from 'vs/base/common/event';
import { dispose, IDisposable } from 'vs/base/common/lifecycle';
import { Gesture, EventType } from 'vs/base/browser/touch';
......@@ -44,7 +44,7 @@ export class Button {
private buttonBorder: Color;
private _onDidClick = new Emitter<any>();
readonly onDidClick: Event<any> = this._onDidClick.event;
readonly onDidClick: BaseEvent<Event> = this._onDidClick.event;
private focusTracker: DOM.IFocusTracker;
......
......@@ -434,7 +434,9 @@ export class NotificationTemplateRenderer {
const action = notification.actions.primary[index];
button.label = action.label;
this.inputDisposeables.push(button.onDidClick(() => {
this.inputDisposeables.push(button.onDidClick(e => {
e.preventDefault();
e.stopPropagation();
// Run action
this.actionRunner.run(action, notification);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册