diff --git a/src/components/KDropdown/KDropdownItem.vue b/src/components/KDropdown/KDropdownItem.vue index e79e664572..3f5e90fccd 100644 --- a/src/components/KDropdown/KDropdownItem.vue +++ b/src/components/KDropdown/KDropdownItem.vue @@ -133,6 +133,7 @@ const strippedAttrs = computed((): typeof attrs => { delete modifiedAttrs.class delete modifiedAttrs.disabled delete modifiedAttrs.style + // Ensure the `data-testid` attribute is only applied to the top-most element delete modifiedAttrs['data-testid'] return modifiedAttrs