This issue is closed but still not working because the variable "o" is matched to drupalSettings.slick and however it should have been cloned since it is an object and therefore the reference for each slick slider instance of the page persists. With this patch the problem seems to be solved.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | dots-misbehave-with-unslick.patch | 6.98 KB | aarnau |
| dots-misbehave-with-unslick.patch | 7.8 KB | aarnau |
Comments
Comment #2
aarnau commentedComment #3
gausarts commentedThank you! Not sure I understand what your problem is, but glad to hear it solved it.
The referenced thread already solved the issue, feel free to re-open even with extra solutions to avoid similar/dup issues.
Comment #4
d70rr3s commentedHi @gausarts I think you went to fast here. The problem is that #3026879: Unslick issue: Dots are not assigned to the proper slick slider when multiple slick are on the page does not solve the issue neither for 1.x nor 1.1 versions and since is marked as fixed wich is not the state cannot be change so is why it's a regression.
Steps to reproduce:
The issue (if you take a look closer to the patch you will see) is that the settings of each slick are overriden during initilization after the 'unslick' event is called because the drupalSettings passed down to are merged instead of being cloned in each iteration.
Please review the patch and since this is only affecting 1.x versions if you consider them not supported feel free to close the issue again.
Thanks
Comment #5
aarnau commentedI modified the patch because by mistake I had added a first version of the patch without modifying the minified javascript.
Comment #6
gausarts commentedThank you!
I am sorry for being too fast. You were talking similar issues which were resolved. Now I think I got your point thanks to detailed explanations.
Would you mind starting with 2.x then we'll keep your previous patch for later backport so to not get lost? Thanks again.
Comment #7
igonzalez commented#5 it works. Thanks
Comment #8
gausarts commentedComment #11
gausarts commentedCommitted. Thank you for contribution!