Is there a way to display a sleek slider within a Bootstrap dropdown element? The issue arises when the slider fails to function if the dropdown is not open from the start, and the prev/next buttons do not respond correctly.
For reference, here is my current code in action: https://codepen.io/cray_code/pen/YzwdgQK
I am utilizing default styles from Bootstrap and the slick slider library.
The JavaScript code responsible for initiating the slider:
$('.mini-cart-items').slick({
dots: false,
nextArrow: $('#minicartnext'),
prevArrow: $('#minicartprev'),
infinite: false,
speed: 300,
slidesToShow: 3,
slidesToScroll: 1,
mobileFirst: true,
vertical:true,
});
When the dropdown is open initially, everything works smoothly. Is there a workaround for this issue?