From ff5cfcdcea6015a9c7ef2461affe9f541509c43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 21 Dec 2021 23:11:23 +0100 Subject: [PATCH] Display caret on expandable group after the string issue11042 review385501002 --- src/view/form.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/view/form.js b/src/view/form.js index c8febfd5c8..e55b2dd665 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -932,14 +932,12 @@ function eval_pyson(value){ 'aria-controls': this.collapsible.attr('id'), 'aria-expanded': attributes.expandable == '1', }).appendTo(title); - link.append(jQuery('
', { - 'class': 'btn btn-sm', - }).append(jQuery('', { - 'class': 'caret', - }))); if (attributes.string) { link.text(attributes.string); } + link.append(jQuery('', { + 'class': 'caret', + })); }, add: function(widget) { this.body.empty();