- Issue created by @geoffreyr
We've been using this to handle Webform requests from our Next.js site, but have just hit a snag when trying to add a new Date field. The Date field itself is usable, but does not correctly limit the days allowed from Tuesday to Saturday. This is because the #date_days
attribute, which is necessary to convey this information, is absent from the JSON:API response, probably because it's an array of integers representing the days of the week. I suspect that the default fallback case in WebformElementsEnhancer::normalizeAttributes
is stripping it out.
#date_days
attribute should be present, but is absentCheck why the default case for array attributes is to be ignored, and mitigate or remove it. I don't think there needs to be a special case for Date-specific attributes, but we should work out why arrays are filtered out in the first place.
None.
None; JSON:API response should still be usable.
Probably some change at the JSON:API end related to how array attributes are represented.
Active
Code