Problem/Motivation

During recent work on Canvas Field Component, it became clear that the States API break on the Duration set of inputs specifically. This seems to be because a details element is used, and Canvas movies the child elements into a React-based details element, losing the states properties in the process.

In the settings, the duration wrapper is a details element but is set to be always open anyway, so functionally nothing would lost moving it to a fieldset instead.

Proposed resolution

Change the duration wrapper to a fieldset.

Issue fork smart_date-3585611

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mandclu created an issue. See original summary.

  • mandclu committed 0bfafc17 on 4.2.x
    feat: #3585611 In SmartDateDefaultFormatter, change the details wrapper...
mandclu’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.