]> _ Git - cubist_cms-back.git/commitdiff
wip #7467 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 3 Jun 2025 13:28:09 +0000 (15:28 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 3 Jun 2025 13:28:09 +0000 (15:28 +0200)
src/public/bunchmultiple/bunchmultiple.js

index 5f77f2d773471007288ee4f23614761b7b178a18..e0bccd0387371935c7cc03ade216c2323a6bda24 100644 (file)
                     if ($(input).closest('.form-group').find('.select2-selection__rendered').length > 0) {
                         res = $(input).closest('.form-group').find('.select2-selection__rendered').text();
                     }
-                    if (res.length > sizeLimit) {
+                    if (res.length > sizeLimit && res.indexOf('<svg') === -1) {
                         res = res.substring(0, sizeLimit) + '...';
                     }
                     return res;