diff --git a/panel/src/components/Collection/Item.vue b/panel/src/components/Collection/Item.vue
index 56fdda0a57..e6a281ac08 100644
--- a/panel/src/components/Collection/Item.vue
+++ b/panel/src/components/Collection/Item.vue
@@ -24,7 +24,7 @@
-
+
@@ -33,7 +33,7 @@
-
+
0;
- },
- title() {
- return this.$helper.string
- .stripHTML(this.$helper.string.unescapeHTML(this.text))
- .trim();
}
},
methods: {
onOption(event) {
this.$emit("action", event);
this.$emit("option", event);
+ },
+ title(text) {
+ return this.$helper.string
+ .stripHTML(this.$helper.string.unescapeHTML(text))
+ .trim();
}
}
};