Opened 10 years ago

Closed 10 years ago

Last modified 6 years ago

#4630 closed bug (worksforme)

Dialog "dialogclose" handlers receive wrong parameters

Reported by: diogobaeder Owned by:
Priority: minor Milestone:
Component: ui.dialog Version: 1.7.2
Keywords: dialog events close arguments parameters Cc:
Blocked by: Blocking:

Description

As documented on the website, the "dialogclose" event handlers should receive two arguments, "event" and "ui", but they're only receiving "event". Passing "ui" as a parameter would be nice, so that the client code could easily access the original elements used to create the dialogs, using "ui.helper" to get them (the context used in the handlers is actually the "ui-dialog" wrapper, not the original element).

My workaround for this was to pass a data argument with the original element as one of its properties, while the bug is not fixed.

Thanks!

Change History (2)

comment:1 Changed 10 years ago by Scott González

Resolution: worksforme
Status: newclosed

The context of the event is the original element, not the wrapper. Also, there is no relevant information to pass in the ui hash, so it is undefined.

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

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.