kesha-antonov / jstree-rails-4

Integrate JSTree javascript library with Rails asset pipeline https://github.com/kesha-antonov/jstree-rails-4
https://rubygems.org/gems/jstree-rails-4
The Unlicense
8 stars 10 forks source link

HTML elements in child nodes only usable when holding down mouse click #2

Closed theshirokumacoder closed 7 years ago

theshirokumacoder commented 7 years ago

Hi there, I was able to get the tree to show but the main issue is when i add a select box html element to a child node, i'm unable to select an option from that box unless i hold down on the mouse and click. Please advise.

 ```
                <div id="tree">
                          <li> Parent Node
                               <ul>
                                <li> 
                                 <select>
                                    <option value="volvo">Volvo</option>
                                    <option value="saab">Saab</option>
                                    <option value="mercedes">Mercedes</option>
                                    <option value="audi">Audi</option>
                                </select>
                               </li>
                             </ul>
                          </li>
                     </div>

<script>            
  $(document).ready(function() {

     $('#tree').jstree({
        "plugins": ["themes", "html_data", "wholerow", "ui"],
     });
</script>
kesha-antonov commented 7 years ago

Hello @TheWolfCoder

You should ask your question here https://github.com/vakata/jstree This package just copies assets to your project