Skip to content

Commit

Permalink
Update virtual-select.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gnbm committed Oct 21, 2023
1 parent fe6f538 commit df6c449
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/virtual-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit df6c449

Please sign in to comment.