My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 438: Dynatree ignores input elements in <li>
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Jun 2013


 
Reported by mark.ach...@gmail.com, Jun 24, 2013
What steps will reproduce the problem?
1. Set up a simple <ul> with just one <li> with a <span> inside
2. Add a input element of type check box to the <li>
3. On 'dynatree-ing' the div, the checkbox disappears.

Fiddle with problem available on:
1. open http://jsfiddle.net/markachten/SEx2P/3/

What is the expected output? What do you see instead?
I would have expect the checkbox to be available right next to the span.

What version of the dynatree and jQuery are you using?
- dynatree 1.2.4
- jQuery 1.8.2

On what operating system and browser?
- OS: W7
- Browser: Chrome 27.0.1453.116 m

What DOCTYPE declaration are you using?
- <!DOCTYPE html>

Please provide any additional information below.
It's all in the fiddle...
Jun 24, 2013
Project Member #1 moo...@wwwendt.de
try adding the input inside the span
Status: Done
Labels: Milestone-Release1.2.5
Jun 24, 2013
#2 mark.ach...@gmail.com
That works... but it is not clickable...
Jun 25, 2013
#3 mark.ach...@gmail.com
I've noticed you've set the status to 'Done'. Does this mean you have found a bug and fixed it already or did you consider answer #1 as the solution to the problem? Cause adding the input inside the span DOES show the input, however it CANNOT be clicked... 
Jun 25, 2013
Project Member #4 moo...@wwwendt.de
This sample seems to work
    http://wwwendt.de/tech/dynatree/doc/sample-multiline.html
please provide more info, what is different in your case (your fiddle does not show a tree in my browser)
Jul 11, 2013
#5 mark.ach...@gmail.com
Got it to work. Had to set the noLink option to true. Spotted the difference in your demos. Thanks.

I'm using your dynatree together with knockout where each node in the tree has three checkboxes bound to properties in the view model. Any experience in that?

Jul 11, 2013
#6 mark.ach...@gmail.com
See http://jsfiddle.net/markachten/UhA3m/ Should work... ;-)
Apr 22, 2014
#7 vivek.ds...@gmail.com
This issue is old, but here is a issue with the input field
1. Expand the node.
2. Enter a value into it's input text field
3. Collapse the node

Now if you again expand the node, the input value is lost.
Apr 23, 2014
Project Member #8 moo...@wwwendt.de
I don't think I am going to fix this in Dynatree, but you might want to have a look at Fancytree, especially the ext-table extension.

Powered by Google Project Hosting