From df6c4494b4bde1ad619df78137e682317872a116 Mon Sep 17 00:00:00 2001 From: gbnm Date: Sat, 21 Oct 2023 21:12:52 +0100 Subject: [PATCH] Update virtual-select.js --- src/virtual-select.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/virtual-select.js b/src/virtual-select.js index 2d38b87..82d8be8 100755 --- a/src/virtual-select.js +++ b/src/virtual-select.js @@ -1529,12 +1529,15 @@ export class VirtualSelect { tooltipText = valueTooltip.join(', '); } - DomUtils.setData($valueText, 'tooltip', tooltipText); + if (!showValueAsTags) { + DomUtils.setData($valueText, 'tooltip', tooltipText); + } if (multiple) { - DomUtils.setData($valueText, 'tooltipEllipsisOnly', selectedLength === 0); - - if (showValueAsTags) { + if (!showValueAsTags) { + DomUtils.setData($valueText, 'tooltipEllipsisOnly', selectedLength === 0); + } + else { this.updatePosition(); } }