Can't save more than 1 conditional logic state

Created on 13 July 2023, over 1 year ago

Problem/Motivation

If you add the stripe credit card element to a webform, you can set a single conditional logic state, but if you hit the "Add another state" button, nothing happens. *I'm running Drupal 9.5.9

Steps to reproduce

  1. Add the stripe credit card element to a webform
  2. Set a conditional logic state (ex: make it hidden based on some other field's value)
  3. Hit the "Add another state" button
  4. You should see another set of fields appear, but nothing happens.

Proposed resolution

It appears the StripeWebformElementBase class needs the DependencySerializationTrait trait.
Adding a simple patch that seems to fix it.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mekal

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

Comments & Activities

Production build 0.71.5 2024