Select to view content in your preferred language

Directions Widget Text Selection

1077
5
Jump to solution
04-08-2013 07:29 AM
MarkHoover
Frequent Contributor
Trying to implement the new Directions Widget and noticed an odd trait.  If I have an address typed into the text boxes and then double-click or triple-click (to select a word or select all, respectively) inside of it, no text is selected.  Worse, I can't even click and drag my cursor over part of the text to select it.  I just have to put my cursor somewhere and hit Delete/Backspace until it's all gone.  Is this a property I can configure?  This behavior is present in the samples, as well.  (Also, am I just going crazy, or is the Directions Widget not currently in the API reference?)
0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Notable Contributor
Try setting directions._dnd.skipForm to true. Here's an example:

        directions = new esri.dijit.Directions({           map: map         },"dir");                  directions.startup();         directions._dnd.skipForm = true;

View solution in original post

0 Kudos
5 Replies
KellyHutchins
Esri Notable Contributor
This is a known issue with the widget and will be fixed in the next release of the JSAPI (version 3.5).

Kelly
0 Kudos
MarkHoover
Frequent Contributor
Is there a workaround for this currently?  Otherwise this widget is effectively useless to us until API v3.5.  Also, am I correct that there is currently no API Reference doc for this dijit?
0 Kudos
KellyHutchins
Esri Notable Contributor
Try setting directions._dnd.skipForm to true. Here's an example:

        directions = new esri.dijit.Directions({           map: map         },"dir");                  directions.startup();         directions._dnd.skipForm = true;
0 Kudos
JohnGravois
Deactivated User
the API reference for the Directions widget can be found here.  it will be visible through browsing shortly.
0 Kudos
MarkHoover
Frequent Contributor
Perfect, thanks to both of you!
0 Kudos