Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Root level [role=leaf] cause a bug #4

Description

@zeroasterisk

If you load any leaf elements onto the tree which are not contained in a branch it gives an error that the method doesn't exist on undefined... which makes sense

$("body").on("click.tree.data-api", "[role=leaf]", function (e) {
  .........
  e = $.Event("nodeselect", {
    node: $(branch).data("tree").node($this)
  });

I tried hacking in basic support for this, but I couldn't get it right... ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions