Opened 9 years ago
Closed 9 years ago
#14053 closed defect (fixed)
dojox.mobile.TextBox selectonclick doesn't work
Reported by: | rjones | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.8 |
Component: | DojoX Mobile | Version: | 1.7.0b1 |
Keywords: | dojox.mobile.TextBox selectonclick | Cc: | |
Blocked By: | Blocking: |
Description
looking at http://download.dojotoolkit.org/release-1.7.0b6/dojo-release-1.7.0b6/dojox/mobile/tests/inputApp/
The last example, "Select On Click Text Input" doesn't select the value of the input box.
Change History (6)
comment:1 Changed 9 years ago by
Milestone: | 1.7 → tbd |
---|---|
Owner: | changed from ykami to Shane O'Sullivan |
comment:3 Changed 9 years ago by
Owner: | changed from Shane O'Sullivan to Douglas Hays |
---|
comment:4 Changed 9 years ago by
Milestone: | tbd → 1.7.2 |
---|---|
Status: | new → assigned |
comment:5 Changed 9 years ago by
Milestone: | 1.7.2 → 1.8 |
---|
Note: See
TracTickets for help on using
tickets.
Looking into this, the TextBoxMixin?'s onFocus method expects the following arguments:
which corresponds to the function being called by from "dijit/focus.js"
However, the Dojo Mobile input fields (TextArea? & TextBox?) don't use the focus manager to handle focus events, instead connecting directly to the "onfocus' event, as seen here:
This causes the following clause in "_onFocus" to fail, not running the selection code to run, as by is the event object not a text string.
I'm not sure what's the best way to fix this, as it appears dojo mobile widgets intentionally don't use the focus manager.