Skip to content

Conversation

@namankhare
Copy link
Contributor

Fixes #86

Current Issue

  • The update method in the tp-slider-count component throws a TypeError: e.getTotalSlides is not a function. This occurs because the getTotalSlides method is being called on a tp-slider element before the required JavaScript for the slider has been loaded, leading to the method being undefined at the time of invocation.
    image

Fix

  • This PR resolves the issue by ensuring the necessary JavaScript for the tp-slider component is loaded and initialized before any method calls are made.

@junaidbhura junaidbhura merged commit 6804854 into master Nov 19, 2024
1 check passed
@junaidbhura junaidbhura deleted the fix/slider-method-undefined branch November 19, 2024 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error in console from tpslider

2 participants