Summary hidden if Text field has Unlimited number of values

Created on 10 November 2016, over 7 years ago
Updated 1 February 2023, over 1 year ago

When you create a Field Type of Text (formatted, long, with summary) you get an option to check for Summary Input which allows you to have a field to explicitly set a Summary. This field is only visible, however, if the Allowed number of values in Field settings is Limited to 1.

Using the 'Unlimited' option or defining values greater than 1 causes the form to auto-hide the Summary field and label. The markup is there, but inline css on the element is setting the display to none.

 <div class="js-text-summary-wrapper text-summary-wrapper" style="display: none;">
    ...
 </div>
πŸ› Bug report
Status

Closed: duplicate

Version

10.1 ✨

Component
TextΒ  β†’

Last updated 9 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States Revalis

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

  • πŸ‡³πŸ‡ΏNew Zealand quietone New Zealand

    @nod_, thanks.

    I tested this on Drupal 10.1.x, umami install. I created a new content type with a multi-alue field of Text (formatted, long with summary). I checked the summary input box. When creating content I was able to add multiple body and summary values for the test field. This does appear to be fixed.

    This is a duplicate of πŸ› Show 'Edit summary' links on multi-value long text field with summary Fixed which was created 1 month before this issue. It is a good reminder to search for duplicate issues.

    I am moving credit to the other issue. No credit is given for duplicate screenshots.

  • πŸ‡³πŸ‡ΏNew Zealand quietone New Zealand
Production build 0.69.0 2024