diff options
| author | Stephen Blott | 2016-09-09 14:11:01 +0100 |
|---|---|---|
| committer | GitHub | 2016-09-09 14:11:01 +0100 |
| commit | adf6d49b3d7e095b588ee7e18fb55fcb5a4ce9f1 (patch) | |
| tree | 06b4e97efb0151037262779d6073b74f2a45225f | |
| parent | 92bfced758957fa65ec1e8209a70d3009911fe0f (diff) | |
| parent | 953bd8e1dd7d76191b1b60b0febab675d8c06259 (diff) | |
| download | vimium-adf6d49b3d7e095b588ee7e18fb55fcb5a4ce9f1.tar.bz2 | |
Merge pull request #2242 from gdh1995/hint-label-for-not-disabled
hint a label only if its control is not disabled
| -rw-r--r-- | content_scripts/link_hints.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index c5fca525..2548abb3 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -623,7 +623,8 @@ LocalHints = when "button", "select" isClickable ||= not element.disabled when "label" - isClickable ||= element.control? and (@getVisibleClickable element.control).length == 0 + isClickable ||= element.control? and not element.control.disabled and + (@getVisibleClickable element.control).length == 0 when "body" isClickable ||= if element == document.body and not windowIsFocused() and |
