Search and Top Navigation
#8661 closed bug (fixed)
Opened October 12, 2012 12:22PM UTC
Closed October 13, 2012 12:27AM UTC
Last modified October 26, 2012 02:20PM UTC
Tooltip doesn't hide on disabled anchor element [IE only]
Reported by: | millepixel | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.1 |
Component: | ui.tooltip | Version: | 1.9.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When anchor element is disabled (has ''disabled="disabled"'' attribute), tooltip is showing correctly on hover, but '''doesn't disappear on mouseout''' - this happens in IE8/9 as far as I've tested (Chrome/FF are not affected)
Attachments (0)
Change History (7)
Changed October 12, 2012 12:32PM UTC by comment:1
Changed October 12, 2012 06:13PM UTC by comment:2
Well, this specific case is technically invalid markup since anchors don't support the disabled attribute (this is custom IE behavior). However, this applies to validly disabled form elements as well. Here's what's happening with disabled element:
Chrome + Firefox: No events at all.
Opera: Full event support.
IE: Delegated events, but no events on the target disabled element.
We use mouseleave
(delegation) for the opening of the tooltip since we don't know which elements might have tooltips when using delegated tooltips. However, once the tooltip is open, we know which element we're dealing with, so we use mouseout
for closing. Hence, tooltips opening in IE but not closing.
Because this is completely inconsistent across browsers and we can't properly handle this in IE, there's nothing we can do support tooltips on disabled elements. However, we can change the default items
option to exclude disabled elements.
Changed October 13, 2012 12:27AM UTC by comment:3
resolution: | → fixed |
---|---|
status: | new → closed |
Tooltip: Change the default items selector to exclude disabled elements. Fixes #8661 - Tooltip doesn't hide on disabled anchor element [IE only].
Changeset: bd3a348776bf50da53d17f1574efd5538ce9de4f
Changed October 13, 2012 12:27AM UTC by comment:4
milestone: | 1.10.0 → 1.9.1 |
---|
Changed October 15, 2012 07:31AM UTC by comment:5
_comment0: | Yup, I know it's invalid, but I don't have the option to change it - don't ask ;) Thank you for fixing this. → 1350286414648686 |
---|
Yup, I know it's invalid, but I don't have the option to change it - don't ask ;) Thank you for explaining this.
Changed October 26, 2012 12:32PM UTC by comment:6
keywords: | → needsdocs |
---|
Changed October 26, 2012 02:20PM UTC by comment:7
keywords: | needsdocs |
---|
Example: http://jsbin.com/welcome/33653