Skip to content

Commit 73ec229

Browse files
committed
Remove explicit id from comment textarea
Stop passing a custom id to textareaField in the KB comment form. Allow the field helper to generate the id instead to avoid duplicated or conflicting DOM ids and simplify the template markup.
1 parent 5a0af9b commit 73ec229

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

templates/pages/tools/kb/comment_form.html.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
{% endif %}
9696
<div class="px-2" style="min-width: 400px;">
9797
{{ fields.textareaField('comment', comment ?? '', null, {
98-
id: comment_id ? 'comment_' ~ comment_id : 'comment_' ~ rand,
9998
no_label: true,
10099
full_width: true,
101100
add_field_html: btn,

0 commit comments

Comments
 (0)