Opened 9 years ago

Closed 8 years ago

Last modified 7 years ago

#11128 closed defect (invalid)

dojo.dnd Internet Explorer 6, 7 & 8 text selection issues

Reported by: gstanevicius Owned by: Eugene Lazutkin
Priority: high Milestone: future
Component: DnD Version: 1.4.2
Keywords: IE, dojoDndHandle, selection Cc:
Blocked By: Blocking:

Description (last modified by Eugene Lazutkin)

When using code like this:

<div dojoType="dojo.dnd.Source" withHandles="true">
    <div class="dojoDndItem">
        <span class="dojoDndHandle">handle only here</span>
        <input type='text' value='cant select text with IE here'/>
    </div>
</div>

on IE you can't select text in dojoDndItem, but outside dojoDndHandle element. With other browsers it works as expected.

Attachments (1)

test.html (1008 bytes) - added by gstanevicius 9 years ago.
full example to test

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by gstanevicius

Attachment: test.html added

full example to test

comment:1 Changed 9 years ago by Eugene Lazutkin

Milestone: tbdfuture
Status: newassigned

comment:2 Changed 8 years ago by Eugene Lazutkin

Description: modified (diff)
Resolution: invalid
Status: assignedclosed

This is a known behavior. In order to skip DnD processing for form elements use skipForm: true, or, like in your example:

<div dojoType="dojo.dnd.Source" withHandles="true" skipForm="true">
    <div class="dojoDndItem">
        <span class="dojoDndHandle">handle only here</span>
        <input type='text' value='cant select text with IE here'/>
    </div>
</div>

comment:3 Changed 7 years ago by pradeephsn

Using the tag "skipForm: true" is not solving the problem. I still not able to copy/paste the content in IE and Chrome.

comment:4 Changed 7 years ago by bill

Works for me. I pasted the code above into dojo/tests/dnd/test_dnd.html and I can select the text on both IE8 and chrome/mac.

Note: See TracTickets for help on using tickets.