Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2618

in tree when click to text area of node and drag a node, text below cursor will is selected

    XMLWordPrintable

    Details

      Description

      procedure at:
      http://www.zkoss.org/zkdemo/effects/drag_n_drop

      with listbox i don't encounter this issue
      http://www.zkoss.org/zkdemo/effects/drag_n_drop

      i see it's by text in listbox item inside a div.
      text in tree node is inside a span.

      i hot fix it by:
      in TreeitemRenderer.render

      add:
      Treecell tc = new Treecell(Objects.toString(node));
      tc.setWidgetListener("onMouseDown", "preventSelectTextInMoveTreeItem();");

      preventSelectTextInMoveTreeItem is a javascript function
      function preventSelectTextInMoveTreeItem (){
      event.preventDefault();
      }

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            hiepgau hiepgau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: