When using the responsive setting, inline style is removed from the slick wrapper's child (i.e. our content that is nested inside slick-slide) when they are targeted by a responsive breakpoint. This was largely unexpected because inline style is preserved if not targeted by responsive breakpoints. This affects both mobileFirst: true or false.
====================================================================
http://jsfiddle.net/e1n5he7e/6/
====================================================================
mobileFirst:true window size is greater than breakpoint) . Inline style should be preserved (in the jsFiddle inline style is simply color:red)====================================================================
====================================================================
====================================================================
I have the same issue...
I also have same problem ((
With version 1.6.0 all was good
As a temporary solution in line 826 need comment
originalSlides.removeAttr('style');
Can confirm this still happens.
Still a problem :/ Any news ?
I confirm that version 1.8.1 has the same bug but there is a catch!
The minified version is OK but not the non-minified! We have inline styles on our slides and they get striped on responsive breakpoint
This works for me (Permanent Solution)
https://stackoverflow.com/questions/52264591/slick-slide-removes-inline-styling-on-responsive-breakpoints/58632397#58632397
@lillorme actually this works!! Bypassing the main element in slider..... hahaha
easy fix but works!
if you can not reach the html structure just wrap the item
$('.slick-container .slick-item').wrap('<div class="slick-item-wrapper"></div>');