Skip to main content

Search and Top Navigation

#13876 closed bug (notabug)

Opened August 04, 2015 09:36AM UTC

Closed August 04, 2015 01:18PM UTC

Tooltip of focused targer is not repositioned after target moves

Reported by: raulfernandezgomez@gmail.com Owned by:
Priority: minor Milestone: none
Component: ui.tooltip Version: 1.11.4
Keywords: Cc:
Blocked by: Blocking:
Description

Noticed in all versions of jquery UI.

A target element with tooltip (in the example is a button), that when focused shows the tooltip. If press ENTER/SPACE, the button shows a hidden DIV element which changes the position of the button, but the tooltip remains in the same place.

See fiddle: http://jsfiddle.net/z7tov9x3/

Attachments (0)
Change History (1)

Changed August 04, 2015 01:18PM UTC by scottgonzalez comment:1

resolution: → notabug
status: newclosed

To answer the question in the fiddle: No, this is not a bug. The tooltip does have dynamic positioning (unless the track option is set, but even then it doesn't apply to focus-activated tooltips). After the click, the button still has focus, so the tooltip remains open. If you're going to change the layout of the page by showing elements, I'd suggest manually closing the tooltip when performing that action.