Problem/motivation

Having 2.x version installed, editing a node, when the expand button for a paragraph is clicked, the whole page refreshes instead of just unfolding and loading the subform for that paragraph.

Reverting to 8.x-1.18 version fixes the problem.

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

taote created an issue. See original summary.

mark_fullmer’s picture

Priority: Normal » Major

Confirming that this problem can be reproduced on any form where (a) a table is rendered when (b) this module's global setting for adding this to administrative Views is enabled. An immediate workaround for someone having this problem is to disable that setting.

Now to the root cause...

mmarler made their first commit to this issue’s fork.

mark_fullmer’s picture

Status: Active » Needs review

Our team determined that the problem here stems from the switch from the jQuery version of Tablesaw to Shoestring, which happened as part of the transition in the 2.x branch to move away from jQuery. The Shoestring library, which functions as a kind of replacement for Tablesaw, appears to have some problems with global scoping that interfere with other JS. See https://github.com/filamentgroup/shoestring/pull/146

Reverting to using jQuery resolves the issue.

The merge request above:
1. Reverts to using the jQuery version of the Tablesaw library.
2. Replaces deprecated calls to push() and sort() with supported syntax per https://blog.jquery.com/2024/02/06/jquery-4-0-0-beta/
3. Moves a couple accessibility customizations out of the library into their own JS file so that it's clear what has been modified about the original library.

  • mark_fullmer committed bbd1f639 on 2.x
    Issue #3460761: Module causes javascript problems in edit form
    
mark_fullmer’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.