js does not work when used though inline entity form simple

Created on 31 March 2024, 9 months ago
Updated 1 April 2024, 9 months ago

When creating an event series though an inline entity form simple with multiple values, the javascript #states does not work as
'inline-entity-form' and $delta and the reference field name is included in the id of the radio and container, as such all the containers are visible when the page loads.

To replicate error, create an entity reference field on a node type using inline entity form simple with unlimited values for eventseries typre.

🐛 Bug report
Status

Active

Version

2.0

Component

Recurring Events (Main module)

Created by

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

Comments & Activities

  • Issue created by @webberly
  • 🇨🇦Canada endless_wander

    @webberly could you provide a little bit more information about how exactly to reproduce?

  • 🇨🇦Canada endless_wander

    Confirmed. Looks like this when creating content where all the frequency options are visible, for example:

  • 🇨🇦Canada endless_wander

    @webberly I tried this out with a regular node using the Conditional Fields module

    I set an image field on a custom node content type. I added a checkbox field called "Show Image" to the content type. I used Conditional Fields to set the image field as a dependency on Show Image being checked.

    On a normal node creation page, when I check the Show Image field, the image field appears. When unchecked, the image field disappears.

    In an inline form, my image field appears no matter whether the Show Image field is checked or unchecked.

    This is the same behaviour as with Recurring Events conditional fields. It seems like the problem is with the Inline Entity module not respecting any #states for any content ?

Production build 0.71.5 2024