Unpublishing a paragraph also unpublishes the entire parent section

Created on 24 August 2023, over 1 year ago
Updated 13 November 2023, about 1 year ago

Problem/Motivation

Unpublishing a paragraph also unpublishes the entire parent section. This only seems to have if the parent section is toggled off and on first.

Steps to reproduce

I have a paragraph type called "section". Within this paragraph I can insert additional paragraphs such a "title".

I'm using the Gin admin interface.

1. Toggle unpublishing off / on the child paragraphs works when the page is first loaded or refreshed.
2. Toggle the section off and then on.
3. Toggle the title paragraph will cause the whole section to also toggle.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

User interface

Created by

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

Comments & Activities

  • Issue created by @smellydelli
  • First commit to issue fork.
  • Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update about 1 year ago
    Waiting for branch to pass
  • @nicholass opened merge request.
  • πŸ‡ΊπŸ‡ΈUnited States NicholasS

    This issue fork should resolve a few bugs with this module. As well as help style things like divs with background colors, and the strips help color blind users.

    Behavior Pre Patch
    - Missing background color on load
    - Toggle state did not check current state so icon and background could get out of sync.
    - Parent/Child toggle mixup (scope issue)

    Post Patch
    - Correct background css on load
    - Correct toggling

  • Status changed to Needs review about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States NicholasS
  • Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update about 1 year ago
    Waiting for branch to pass
  • Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update about 1 year ago
    Waiting for branch to pass
  • πŸ‡ΊπŸ‡ΈUnited States NicholasS

    The latest change, converts the icon to toggle publishing to an eye either open/closed. This can support color blind users, and matches the existing icons better I think.

  • Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update about 1 year ago
    Waiting for branch to pass
  • Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update about 1 year ago
    Waiting for branch to pass
Production build 0.71.5 2024