Skip to content

Commit

Permalink
Merge pull request #6372 from mehdirande/fix-6371-add-slots-data-on-t…
Browse files Browse the repository at this point in the history
…ree-nodetoggleicon

Fix #6371: Add node and expanded data on nodetoggleicon.
  • Loading branch information
tugcekucukoglu authored Sep 24, 2024
2 parents 7082584 + 264b30c commit e4d431e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/tree/TreeNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<button v-ripple type="button" :class="cx('nodeToggleButton')" @click="toggle" tabindex="-1" v-bind="getPTOptions('nodeToggleButton')">
<template v-if="node.loading && loadingMode === 'icon'">
<!-- TODO: nodetogglericon deprecated since v4.0-->
<component v-if="templates['nodetoggleicon'] || templates['nodetogglericon']" :is="templates['nodetoggleicon'] || templates['nodetogglericon']" :class="cx('nodeToggleIcon')" />
<component v-if="templates['nodetoggleicon'] || templates['nodetogglericon']" :is="templates['nodetoggleicon'] || templates['nodetogglericon']" :node="node" :expanded="expanded" :class="cx('nodeToggleIcon')" />
<SpinnerIcon v-else spin :class="cx('nodetogglericon')" v-bind="ptm('nodeToggleIcon')" />
</template>
<template v-else>
Expand Down

0 comments on commit e4d431e

Please sign in to comment.