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.
Fivestars clicking does not work. Console error Uncaught TypeError: $this_star.prevAll(...).andSelf is not a function in fivestar.js.
Comment | File | Size | Author |
---|---|---|---|
#2 | uncaught_typeerror-2920834-2.patch | 475 bytes | _gradient_ |
Selection_723.png | 6.57 KB | _gradient_ | |
Selection_722.png | 20.07 KB | _gradient_ |
Comments
Comment #2
_gradient_ CreditAttribution: _gradient_ as a volunteer and at AnyforSoft commentedandSelf() is replaced in jQuery3 with addBack().
Comment #3
_gradient_ CreditAttribution: _gradient_ as a volunteer and at AnyforSoft commentedComment #4
_gradient_ CreditAttribution: _gradient_ as a volunteer and at AnyforSoft commentedComment #5
sorabh.v6I can confirm that the patch in #2 is working for me fine. Therefore, setting it to RTBC.
Thanks
Comment #6
Mitriy-Bug CreditAttribution: Mitriy-Bug commentedAfter upgrading to Drupal 8.4.2 stopped working buttons select the rating. Turned out to be a bug in jquery version v. 3.2.1 in the kernel. Manually installed the v2 version.2.4 and it worked.
Comment #7
Gildart CreditAttribution: Gildart commentedHi
I am in D8.4.4 and applied the patch but it is still not working.
I can select the stars, the stars stay selected but nothing is saved in the database when the page is reloaded...
Thanks
gildart
Comment #8
rferguson CreditAttribution: rferguson commentedSame here, on 8.3.7 though. Clicking the stars does nothing to save it. There's no console/network activity either.
Comment #9
icurk CreditAttribution: icurk at Agiledrop - Your Trusted Drupal Teammates commentedThe patch is working for me on Drupal 8.4.4.
Comment #10
rferguson CreditAttribution: rferguson commentedI just updated to 8.4.4. Still not persisting to the DB. It looks like the fivestar.js file doesn't have any code in it to actually call the saving of the option. It seems like there should be something within fivestar.rate.
icurk, when you choose a star, then reload, are you seeing the choice you've selected appear? Right now nothing is saved against the DB for me.
Comment #11
PanchoClosed #2927390: Drupal 8.4.2 - jquery v. 3.2.1 as a duplicate of this issue.
Comment #12
dbjpanda CreditAttribution: dbjpanda commentedWorks for me. Thanks
Comment #13
init90The patch already included in the dev version of the module. Thanks, everyone!