Skip to content

could not call event listener on node slot #80

@ramyaelanchezhian

Description

@ramyaelanchezhian

HI,
I want to customized node with checkbox..but unable to call methods on checkbox element. i used only svg element inside node slot

Here is my code:

      <template #node="{data, node: {depth}}" >
           <template>
                  <circle r="5" stroke="#312ecc"></circle>
                  <foreignObject x="10" y="-5" width="100" height="100">
                      <input type="checkbox" :value="data.name"  id="checkbox" >
                  </foreignObject>
                  <a href="#"><text dy=".35em" x="6" dx="0" y="0" text-anchor="start" transform="rotate(0)">
                  {{data.text}}</text></a>
              </template>
      </template>        
    </tree>

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