Fieldset component produces invalid HTML (missing attribute)

Created on 6 January 2025, 16 days ago

Problem/Motivation

When a fieldset is NOT disabled, it generates an attribute in the form ="", which is invalid. The is caused by disabled_attr being an empty string:

<fieldset {{ attributes.addClass(fieldset_classes).setAttribute(disabled_attr, disabled_attr) }}>

Steps to reproduce

Add a radio buttons to a form and observe the surrounding fieldset.

πŸ› Bug report
Status

Active

Version

6.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States danchadwick Boston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024