Behavior detach() method only works once

Created on 7 March 2025, about 1 month ago

Invoking once() inside the behavior detach() method seems unnecessary, and is preventing subsequent Ajax form submissions from correctly firing the detach() method, in turn failing to save the CodeMirror editor's latest changes to the hidden textarea.

Steps to reproduce:

Add a CodeMirror editor field to a form that uses Ajax and does not refresh on every submission. Note that

detach()<code> is only called on the first submission, and any further changes in the editor will not be captured in subsequent submissions.

<h2>Next steps:</h2>

Remove unnecessary call to <code>once()

in the detach() method.

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States justin2pin

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024