Slider JS error when there are no view results

Created on 9 January 2024, 11 months ago
Updated 26 January 2024, 11 months ago

Problem/Motivation

When a vlsuite slider is being used over a view without results, there appears this JS error:

Uncaught TypeError: sliderElement is null

Additionally, if there are more sliders in the same page based on vlsuite slider, the slider won't be created.

Steps to reproduce

Create a vlsuite slider component with a view that does not have results.
Go to the page where that vlsuite slider is created and check the browser console.

Proposed resolution

Before generating the slider, check that the sliderElement is not null.

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇪🇸Spain omarlopesino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024