The Needs Review Queue Bot β tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- First commit to issue fork.
- πΊπΈUnited States recrit
I recently ran into this issue. When
Drupal.detachBehaviors()
is called with an empty context, it will numerous issues. Any JS implementing a detach will remove everything that it did in attach. For example, any autcomplete UX added bycore/misc/autocomplete.js
.I created the MR with the 1 line fix.
The attached static patch can be used for composer builds and applies to both 11.x and 10.3.x+. - π©πͺGermany mxh Offenburg
This issue is rather old but interestingly I also ran into this issue the last couple of days. In my case I'm just returning a
MessageCommand
as Ajax response. When no message is already existing on the page, this bug occurs.