Tabs aren't marked required with added/removed paragraphs

Created on 12 July 2017, over 7 years ago
Updated 9 September 2024, 5 months ago

Scenario: tab groups used with paragraphs that have required fields. There are no paragraphs inputs until a paragraph is added, so the tab isn't marked as required. Once a paragraph with required fields is added, the tab should be marked as required, and if there are no longer required fields from removing all paragraphs with required fields, the tab should no longer be marked as required.

This currently doesn't work because the check for required fields is only performed once on initialization -- using jQuery's .once() -- on the details container.

There would also need to be an additional check if there are no longer required fields.

The attached patch should accommodate for this.

πŸ› Bug report
Status

Postponed: needs info

Version

4.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States blake.thompson

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024