Opened 10 years ago
Closed 8 years ago
#12298 closed defect (invalid)
TooltipDialog: unable to focus iframe inside of dijit.TooltipDialog
Reported by: | Caleb Maclennan | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.9 |
Component: | Dijit | Version: | 1.6.0b1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
When rendering an iframe inside a dijit.TooltipDialog, focus inside the iframe makes the tooltip disapear.
Use case: FB like button inside a drop down menu. The initial display works fine, clicking on the button itself doesn't do anything other than the tooltip losing focus and going away.
Dojo 1.6.0b2
Attachments (2)
Change History (8)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Summary: | Unable to focus iframe inside of dijit.TooltipDialog → TooltipDialog: unable to focus iframe inside of dijit.TooltipDialog |
---|
OK, please attach a test case.
Changed 10 years ago by
Attachment: | TooltipDialogIframe.html added |
---|
Test case shows that focusing an iframe insdie a TooltipDialog? closes to popup.
comment:3 follow-up: 4 Changed 10 years ago by
Description: | modified (diff) |
---|---|
Milestone: | tbd → future |
Thanks for the test case... you mentioned "focus inside the iframe" but in that test case, there isn't anywhere inside the iframe to focus, is there?
In any case, I'm not surprised this fails, we would need to add some extra code to figure out where to focus inside the iframe.
comment:4 Changed 10 years ago by
Replying to bill:
Thanks for the test case... you mentioned "focus inside the iframe" but in that test case, there isn't anywhere inside the iframe to focus, is there?
Perhaps "focus" isn't the right lingo here, but it isn't necessary to have an item inside the iframe that receives focus, just the document is enough. That src href is to a file in the dijit tests directory, any html data will work. Clicking anywhere inside the iframe triggers this behavior.
comment:5 Changed 8 years ago by
Milestone: | future → 1.9 |
---|---|
Priority: | high → low |
I suspect you need to call registerIframe(). See #16517. I may solve both of these tickets with the same fix, so marking this for possible inclusion in 1.9.
comment:6 Changed 8 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
OK, you do need to call regsterIframe() and then it works. Admittedly that's not convenient and not documented well, but that's the API. I'll attach a working test case.
Changed 8 years ago by
Attachment: | TooltipDialogIframeRegistered.html added |
---|
works if you call registerIframe() after iframe has loaded
Possibly related focus issue in #12297