Opened 12 years ago
Closed 12 years ago
#8091 closed defect (fixed)
If LI has some internal structure including inner li, the inner li should not be rolled.
Reported by: | youngho | Owned by: | dante |
---|---|---|---|
Priority: | high | Milestone: | 1.3 |
Component: | DojoX Widgets | Version: | 1.2.1 |
Keywords: | Roller | Cc: | |
Blocked By: | Blocking: |
Description
If UL has a complicated structure like <ul>
<li>Coffee</li> <li>Tea
<ul>
<li>Black tea</li> <li>Green tea</li>
</ul>
</li> <li>Milk</li>
</ul>
I think, the rolling item should be the Coffee, Tea and Milk only.
Attachments (1)
Change History (4)
Changed 12 years ago by
Attachment: | roller.patch added |
---|
comment:1 Changed 12 years ago by
Status: | new → assigned |
---|
@youngho - try out: dojo.query(">li", this.domNode) instead. that will select only first-children of the initial UL. I agree this should be the default, so if you report back it works out okay for you, I'll happily implement. maybe a public parameter would be better serve people? childrenSelector:">li" and then later dojo.query(this.childrenSelector, this.domNode) ?
comment:2 Changed 12 years ago by
Milestone: | tbd → 1.3 |
---|
Note: See
TracTickets for help on using
tickets.
The first patch is wrong. I don't know how I can get the children using query, but second one is working.