#8626 closed bug (fixed)
Programatically opening a tooltip with out giving an event results in a javascript error.
Reported by: | mdownes | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | git |
Component: | ui.tooltip | Version: | 1.9.0-rc.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
I am receiving a javascript error when i try to programatically open a tooltip using the open() method.
I am not passing an event as a parameter as i have none.
The documentation states ......"event object is only necessary for delegated tooltips so the widget knows which element to show the tooltip for"
The problem is the following line where there is no check to see if the event exists:
if ( this.options.track && /^mouse/.test( event.originalEvent.type ) ) {
Please review the following test case:
Kind Regards,
Maurice
Change History (2)
comment:1 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
Milestone: | 1.9.0 → git |
---|
Note: See
TracTickets for help on using
tickets.
Tooltip: Check if event exists before checking properties in open(). Fixes #8626 - Programatically opening a tooltip with out giving an event results in a javascript error.