aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/link_hints.coffee
diff options
context:
space:
mode:
authormrmr19932015-09-13 15:10:30 +0100
committermrmr19932015-09-13 15:10:30 +0100
commit4a28bfb221b4fed51e6badea0c9d6598393794df (patch)
tree1ab1a33f0be60116b07e595a134997ef07336af2 /content_scripts/link_hints.coffee
parent940ab8d62db784c2506222d3c5c6c1117b30fea3 (diff)
downloadvimium-4a28bfb221b4fed51e6badea0c9d6598393794df.tar.bz2
Only show link hints for <label>s for elements without a hint
Diffstat (limited to 'content_scripts/link_hints.coffee')
-rw-r--r--content_scripts/link_hints.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index dae7b14e..a5e94fd0 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -215,7 +215,7 @@ class LinkHintsMode
when "button", "select"
isClickable ||= not element.disabled
when "label"
- isClickable ||= element.control?
+ isClickable ||= element.control? and (@getVisibleClickable element.control).length == 0
# Elements with tabindex are sometimes useful, but usually not. We can treat them as second class
# citizens when it improves UX, so take special note of them.