Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
states.js attach add listeners to document but does not remove them.
Proposed resolution
Implement detach.
Remaining tasks
Make patch
User interface changes
None.
API changes
None.
Comments
Comment #1
nod_Agreed this is desirable.
Comment #13
dwwThis came up as a random triage target for Bug Smash. Initial thought is this is probably still a bug and worth fixing. The good news is that we've now got
core/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php
, so it should be fairly easy to expand that test to add coverage for this.