Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Jan 23, 2025
1 parent 4a61c4d commit f86ddd5
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions panel/src/components/Navigation/Tag.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<template>
<component
v-bind="attrs"
:is="element ?? (link ? 'k-link' : 'button')"
:aria-disabled="disabled"
:data-theme="theme"
:to="link"
class="k-tag"
type="button"
@keydown.delete.prevent="remove"
Expand Down Expand Up @@ -92,17 +93,6 @@ export default {
},
emits: ["remove"],
computed: {
attrs() {
const attrs = {
is: this.element ?? (this.link ? "k-link" : "button")
};
if (this.link) {
attrs.to = this.link;
}
return attrs;
},
isRemovable() {
return this.removable && !this.disabled;
}
Expand Down

0 comments on commit f86ddd5

Please sign in to comment.