From 08cfe2c41f00d9cc81b0657e43e1d338eae7188b Mon Sep 17 00:00:00 2001 From: Nico Hoffmann Date: Sun, 24 Mar 2024 21:36:40 +0100 Subject: [PATCH] Item: add title for info text as well --- panel/src/components/Collection/Item.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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(); } } };