Mangalaputta / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Dynatree ignores input elements in <li> #438

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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...

Original issue reported on code.google.com by mark.ach...@gmail.com on 24 Jun 2013 at 8:18

GoogleCodeExporter commented 8 years ago
try adding the input inside the span

Original comment by moo...@wwwendt.de on 24 Jun 2013 at 11:30

GoogleCodeExporter commented 8 years ago
That works... but it is not clickable...

Original comment by mark.ach...@gmail.com on 24 Jun 2013 at 11:37

GoogleCodeExporter commented 8 years ago
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... 

Original comment by mark.ach...@gmail.com on 25 Jun 2013 at 12:49

GoogleCodeExporter commented 8 years ago
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)

Original comment by moo...@wwwendt.de on 25 Jun 2013 at 3:06

GoogleCodeExporter commented 8 years ago
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?

Original comment by mark.ach...@gmail.com on 11 Jul 2013 at 9:43

GoogleCodeExporter commented 8 years ago
See http://jsfiddle.net/markachten/UhA3m/ Should work... ;-)

Original comment by mark.ach...@gmail.com on 11 Jul 2013 at 9:55

GoogleCodeExporter commented 8 years ago
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.

Original comment by vivek.ds...@gmail.com on 22 Apr 2014 at 9:13

GoogleCodeExporter commented 8 years ago
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.

Original comment by moo...@wwwendt.de on 23 Apr 2014 at 1:41