Skip to content

Commit

Permalink
Fixed #6368
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Sep 10, 2024
1 parent 79d6a0c commit a382e67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/primevue/src/treetable/TreeTableRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@
</template>

<script>
import { find, findSingle, focus, getAttribute, isClickable } from '@primeuix/utils/dom';
import { resolveFieldData } from '@primeuix/utils/object';
import BaseComponent from '@primevue/core/basecomponent';
import { getVNodeProp } from '@primevue/core/utils';
import { isClickable, getAttribute, findSingle, focus, find } from '@primeuix/utils/dom';
import { resolveFieldData } from '@primeuix/utils/object';
import BodyCell from './BodyCell.vue';
export default {
Expand Down Expand Up @@ -143,7 +143,7 @@ export default {
this.$emit('node-toggle', this.node);
},
onClick(event) {
if (isClickable(event.target) || getAttribute(event.target, 'data-pc-section') === 'rowtogglebutton' || getAttribute(event.target, 'data-pc-section') === 'rowtoggleicon' || event.target.tagName === 'path') {
if (isClickable(event.target) || getAttribute(event.target, 'data-pc-section') === 'nodetogglebutton' || getAttribute(event.target, 'data-pc-section') === 'rowtoggleicon' || event.target.tagName === 'path') {
return;
}
Expand Down Expand Up @@ -221,7 +221,7 @@ export default {
},
onArrowRightKey(event) {
const ishiddenIcon = findSingle(event.currentTarget, 'button').style.visibility === 'hidden';
const togglerElement = findSingle(this.$refs.node, '[data-pc-section="rowtogglebutton"]');
const togglerElement = findSingle(this.$refs.node, '[data-pc-section="nodetogglebutton"]');
if (ishiddenIcon) return;
Expand All @@ -240,7 +240,7 @@ export default {
const currentTarget = event.currentTarget;
const ishiddenIcon = findSingle(currentTarget, 'button').style.visibility === 'hidden';
const togglerElement = findSingle(currentTarget, '[data-pc-section="rowtogglebutton"]');
const togglerElement = findSingle(currentTarget, '[data-pc-section="nodetogglebutton"]');
if (this.expanded && !ishiddenIcon) {
togglerElement.click();
Expand Down

0 comments on commit a382e67

Please sign in to comment.