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

Unified Diff: ui/webui/resources/js/action_link.js

Issue 2796663002: Revert of [WebUI] Tweak action-link's .no-outline removal behavior on blur. (Closed)
Patch Set: Created 3 years, 9 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/action_link.js
diff --git a/ui/webui/resources/js/action_link.js b/ui/webui/resources/js/action_link.js
index 9d83ed727a749c6549186c6b12f6d46ce2448ce7..a9e1ffd6620991b44b5a6aa4a790bd93da9c62eb 100644
--- a/ui/webui/resources/js/action_link.js
+++ b/ui/webui/resources/js/action_link.js
@@ -75,10 +75,8 @@
this.classList.add('no-outline');
});
- this.addEventListener('blur', function(e) {
- // This check helps us exclude external events like application switch.
- if (e.sourceCapabilities)
- this.classList.remove('no-outline');
+ this.addEventListener('blur', function() {
+ this.classList.remove('no-outline');
});
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698