Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/UIList.js

Issue 2527763003: [DevTools] Turn links into spans to prevent default behavior. (Closed)
Patch Set: fixed comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sources/UIList.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/UIList.js b/third_party/WebKit/Source/devtools/front_end/sources/UIList.js
index 2f4b2f52b212791811c0b1141e9a2f9b5cb857c4..55342934e859511a4a4274caccce362e8e6c116b 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/UIList.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/UIList.js
@@ -227,7 +227,7 @@ Sources.UIList.Item = class {
if (!title || !handler)
return;
this._actionElement = this.element.createChild('div', 'action');
- var link = this._actionElement.createChild('a', 'action-link');
+ var link = this._actionElement.createChild('span', 'action-link');
link.textContent = title;
link.addEventListener('click', (event) => {
link.disabled = true;

Powered by Google App Engine
This is Rietveld 408576698