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.
If you have a views formatter "HTML list" and add multiple wrapper classes you get a
Uncaught TypeError: Cannot read property 'top' of null
error.
It only works with a single class. So thats the workaround for me for now.
Comment | File | Size | Author |
---|---|---|---|
#1 | multiplewrapperclassesissue-2298837-1.patch | 794 bytes | ankitchauhan |
Comments
Comment #1
ankitchauhan CreditAttribution: ankitchauhan commentedAttached a patch with improved functionality. Now you can add multiple wrapper classes
Comment #2
ankitchauhan CreditAttribution: ankitchauhan commentedComment #3
MashMedia CreditAttribution: MashMedia commented@ankitchauhan
A better fix would be to replace the spaces with a .
You know explode and return the first element but i think thats avoiding the problem rather than working with it.
Using my solution you always load for this specific view. with your specific classes.
Comment #4
Honza Pobořil CreditAttribution: Honza Pobořil as a volunteer commented