Search and Top Navigation
#3135 closed bug (worksforme)
Opened July 25, 2008 05:46AM UTC
Closed August 30, 2008 11:22PM UTC
Last modified October 11, 2012 09:15PM UTC
Unable to select text in inputs inside dialog (similar to Ticket #3059 )
Reported by: | mgl | Owned by: | scottgonzalez |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ui.dialog | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I'm having the same problem as Ticket #3059 with ui 1.5.2 (which is supposed to be fixed). The difference is that this applies to elements inside the container element that dialog is created with. For example, the following will create a dialog with an input element in it:
$('<div>Try for yourself:<br /><input style="width:250px;border:1px solid black;" value="You can\\'t touch this" /></div>').dialog({title:"Good luck"});
If you have resizable and/or draggable loaded, you won't be able to use the mouse to put the cursor into the input or select text.
I was able to work around this by changing lines 109 and 129 in ui.dialog.js to the following:
cancel: '.ui-dialog-content,input,textarea',
I'm not sure if this is the best solution, but it works for my case.
Attachments (0)
Change History (5)
Changed July 25, 2008 03:53PM UTC by comment:1
component: | ui.core → ui.dialog |
---|---|
owner: | paul → scott.gonzalez |
Changed August 17, 2008 10:11AM UTC by comment:2
milestone: | → TDB |
---|
Changed August 30, 2008 11:22PM UTC by comment:3
resolution: | → worksforme |
---|---|
status: | new → closed |
This works for me. The modified cancel option that you provide should not behave any differently from the current cancel option if you are using a current version of UI. The cancel selector is checked against the element and all of its parents, so providing .ui-dialog-content is sufficient.
If you continue to have problems please create a test page and re-open the ticket.
Changed September 02, 2008 03:22AM UTC by comment:4
I was able to reproduce this problem as well (but only if the draggable
library was being loaded). Updating my copies to latest solved the problem.
Changed October 11, 2012 09:15PM UTC by comment:5
milestone: | TBD |
---|
Milestone TBD deleted