Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#8661 closed bug (fixed)

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)

Change History (7)

comment:2 Changed 7 years ago by Scott González

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.

comment:3 Changed 7 years ago by Scott González

Resolution: fixed
Status: newclosed

Tooltip: Change the default items selector to exclude disabled elements. Fixes #8661 - Tooltip doesn't hide on disabled anchor element [IE only].

Changeset: bd3a348776bf50da53d17f1574efd5538ce9de4f

comment:4 Changed 7 years ago by Scott González

Milestone: 1.10.01.9.1

comment:5 Changed 7 years ago by millepixel

Yup, I know it's invalid, but I don't have the option to change it - don't ask ;) Thank you for explaining this.

Last edited 7 years ago by millepixel (previous) (diff)

comment:6 Changed 7 years ago by Scott González

Keywords: needsdocs added

comment:7 Changed 7 years ago by Scott González

Keywords: needsdocs removed
Note: See TracTickets for help on using tickets.