vakata / jstree

jquery tree plugin
http://jstree.com
MIT License
5.15k stars 1.38k forks source link

conditional select fires on check #2429

Closed kpetrow closed 4 years ago

kpetrow commented 4 years ago

Using the conditional select there is no way to determine if the callback function was fired from the user clicking the checkbox or clicking the select area/text of the node

checkbox options

 "checkbox": {
        "keep_selected_style": false,
        "three_state": false,
        "tie_selection": false,
        "whole_node": false
    },

It seems the target passed to conditional select event target is always the tag.

kpetrow commented 4 years ago

well i was wrong.. event.target is class checkbox or class jstree-anchor. oops