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
Currently it's unable to bind custom click action to collapsible fieldset legend (without replacing the original collapse.js) because of an unnecessary FALSE return.
Proposed resolution
I think that the original purpose was to prevent the default event action. If the return will be replaced by event.preventDefault(), both of these needs can be fulfilled.
Comment | File | Size | Author |
---|---|---|---|
#2 | drupal-prevent-instead-return-2581261-2.patch | 927 bytes | huzooka |
Comments
Comment #2
huzookaComment #3
huzooka