Skip to content

Disabled nestedform datepicker #1408

@AIC-BV

Description

@AIC-BV

Winter CMS Build

dev-develop

PHP Version

8.4

Database engine

MySQL/MariaDB

Plugins installed

No response

Issue description

Hello

I found a small bug.
When using a disabled nestedform field in combination with a datepicker

The updated_at shows the datepicker form, but the created_at in the configuration object renders a string.
This only occurs when the nestedform is disabled. If the nestedform is enabled, but the created_at disabled, it renders the datepicker form as expected.

Image

Steps to replicate

fields:
    updated_at:
        tab: Ontwerp
        label: Updated at
        type: datepicker
        disabled: true

    configuration:
          tab: Ontwerp
          type: nestedform
          usePanelStyles: false
          disabled: true
          trigger:
              action: hide
              field: approved_status
              condition: value[canceled]
          form:
              fields:
    
                  created_at:
                      label: Original created at
                      type: datepicker

Workaround

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions