Opened 11 years ago
Closed 11 years ago
#11477 closed defect (wontfix)
Destroying an Element inside a TooltipDialog in Safari 5 results in the Dialog Closing
Reported by: | Pete Smith | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | tbd |
Component: | Dijit | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Easy way to repro.
<div dojoType="dijit.form.DropDownButton"> <span>Safari bug/span> <div dojoType="dijit.TooltipDialog"> <div dojotype="dijit.form.Button" onClick="this.destroy();"> Destroy me and watch my dialog close, only on Safari!!! </div> </div> </div>
Change History (2)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Right, and I don't see any way to "fix" this problem automatically, the app needs to do this. It's standard procedure to close a popup when focus is moved somewhere outside of the popup.
Note: See
TracTickets for help on using
tickets.
Thanks to wildbill, I have a workaround. In the dijit that I need to be destroyed, I added:
So all I do is scarf the focus BEFORE I destroy myself, thus the dialog stays open. Obviously change for your implementation, but that is the key. Safari / Chrome don't like it if you steal the focus on your el within the TooltipDialog?.