Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#13846 closed defect (fixed)

Cannot edit dojox.mobile.TextBox when inside dojox.mobile.Heading

Reported by: ebengtso Owned by: Eric Durocher
Priority: high Milestone: 1.9
Component: DojoX Mobile Version: 1.7.0b1
Keywords: Cc:
Blocked By: Blocking:

Description

dojox.mobile.TextBox? gets displayed in dojox.mobile.Heading, but I cannot edit or get focus on the textbox.

Here a snipted:

<h1 dojoType="dojox.mobile.Heading" label="header label"> <div style="float:left; margin-top:10px"> <input dojoType="dojox.mobile.TextBox?" selectOnClick="true" id="transactionNumber" placeHolder="Transaction Number"></input> </div> </h1>

Change History (11)

comment:1 Changed 8 years ago by ykami

Could you try adding position:relative; to your wrapper div?

comment:2 Changed 8 years ago by ebengtso

Thanks. Adding position:relative do the wrapping div fixed the issue.

comment:3 Changed 6 years ago by ykami

Resolution: invalid
Status: newclosed

comment:4 Changed 6 years ago by ebengtso

Why is this closed as invalid?

The proposed solution does not work on IE.

comment:5 Changed 6 years ago by ykami

Resolution: invalid
Status: closedreopened

comment:6 Changed 6 years ago by ykami

Owner: changed from ykami to Eric Durocher
Status: reopenedassigned

Eric, please take a look. It is reproducible on IE.

comment:7 Changed 6 years ago by Eric Durocher

Right, the Heading calls:

dom.setSelectable(this.domNode, false);

which, on IE, sets the "unselectable" attribute on all children, and makes the INPUT uneditable.

A workaround is to reset unselectable=off, for example:

require([
    "dojo/ready",
    "dojo/dom",
    "dojo/dom-attr"
], function(ready, dom, domAttr){
    ready(function(){
        domAttr.set(dom.byId("transactionNumber"), "unselectable", "off");
    });
});

comment:8 Changed 6 years ago by Eric Durocher

Resolution: fixed
Status: assignedclosed

In [31218]:

fixes #13846, fix non-editable input elements in Heading widgets on IE < 10. !strict

comment:9 Changed 6 years ago by Eric Durocher

Fixed in trunk (so 1.9), tell me if you need a backport to 1.8? Or is the workaround enough for you?

comment:10 Changed 6 years ago by bill

Milestone: tbd1.9

comment:11 Changed 6 years ago by ebengtso

perfect. thanks.

Note: See TracTickets for help on using tickets.