Skip to content

Commit

Permalink
fix: click event on leftbar group row (#1265)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexLamDialpad authored Oct 18, 2023
1 parent a506df6 commit d31bf5d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions recipes/leftbar/group_row/group_row.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
:selected="selected"
:is-typing="isTyping"
v-bind="$attrs"
v-on="contactRowListeners"
>
<template #left>
<dt-icon
Expand All @@ -21,7 +22,7 @@
<script>
import { DtRecipeGeneralRow } from '@/recipes/leftbar/general_row';
import DtIcon from '@/components/icon/icon.vue';
import { safeConcatStrings } from '@/common/utils.js';
import { safeConcatStrings, extractVueListeners } from '@/common/utils.js';
export default {
name: 'DtRecipeGroupRow',
Expand Down Expand Up @@ -94,19 +95,16 @@ export default {
},
emits: [
/**
* Native click event on the row itself
*
* @event click
* @type {PointerEvent | KeyboardEvent}
*/
'click',
],
computed: {
ariaLabel () {
return safeConcatStrings([this.groupCountText, this.names]);
},
contactRowListeners () {
return extractVueListeners(this.$attrs);
},
},
};
</script>

0 comments on commit d31bf5d

Please sign in to comment.