Opened 8 years ago
Closed 8 years ago
#13876 closed bug (notabug)
Tooltip of focused targer is not repositioned after target moves
Reported by: | 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/
Note: See
TracTickets for help on using
tickets.
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.