[#States API] AJAX and Conditionals Conflicting

Created on 20 February 2020, over 4 years ago
Updated 8 April 2024, 7 months ago

I'm seeing Pattern-based Conditionals logic break when a Computed Twig is updated via AJAX on the same page.

Using the attached form, these are the steps to reproduce:

1. Check the checkbox
2. Wait for the related Computed Twig element to update via AJAX
3. Edit one of the two Number elements
4. Observe the erroneous appearance of the Message element
5. Edit the second Number element and the Message element now behaves as expected
6. Return to step 1 to re-trigger the error

Other tests with this form I've tried that do work:

  • Using one Number element w/ "Pattern is not" condition for Message visibility
  • Using two Number elements w/ "Value is not" conditions for Message visibility
  • Manipulating the Number values before then Computed Twig finishes updating
πŸ› Bug report
Status

Active

Version

6.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States nodecode

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024