Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#18719 closed defect (worksforme)

Unable to set cursor by mouse click in TextBox when it is inside of dnd/Source

Reported by: t.everding Owned by: Eugene Lazutkin
Priority: undecided Milestone: tbd
Component: DnD Version: 1.10.4
Keywords: Cc:
Blocked By: Blocking:


Description: When you have dijit/form/TextBoxes inside of a dojo/dnd/Source it is not possible to set the cursor position inside a text via mouse click.


You can do a right-click in one of the text boxes to focus it and type text. A right-click also allows to change the cursor position. Left-clicks do not work.

If you disable the DnD Source (use the other DIV in the HTML) the mouse clicks work as expected.

Expected result: Mouse clicks have the same result independently of a surrounding dnd/Source.

Change History (2)

comment:1 Changed 6 years ago by bill

Resolution: worksforme
Status: newclosed

It is possible, but you need to set skipForm: true, like this:

<div dojoType="dojo/dnd/Source" jsId="c1" class="container"
                data-dojo-props="skipForm: true">
        <div class="dojoDndItem">1: <div dojoType="dijit/form/TextBox" id="one"></div></div>
        <div class="dojoDndItem">2: <div dojoType="dijit/form/TextBox" id="two"></div></div>
        <div class="dojoDndItem">3: <div dojoType="dijit/form/TextBox" id="three"></div></div>
Last edited 6 years ago by bill (previous) (diff)

comment:2 Changed 6 years ago by t.everding

Thank you!

It seems that I wasn't able to find it in the documentation. Maybe you could add a small note in the API Doc.

Note: See TracTickets for help on using tickets.