Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single item pagination not hidden on type "fade" #1191

Open
2 tasks done
despecial opened this issue Jun 19, 2023 · 0 comments
Open
2 tasks done

Single item pagination not hidden on type "fade" #1191

despecial opened this issue Jun 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@despecial
Copy link

despecial commented Jun 19, 2023

Checks

Version

4.1.4.

Description

Normally, if there is only 1 item active and the pagination option is set to true, the dot is hidden.
When the type of splide is set to "fade", this is not the case.

Reproduction Link

https://jsfiddle.net/despecial/cL1etrjv/8/

Steps to Reproduce

  1. Set type to 'fade'
  2. Set pagination to true

Fix is included in the JS fiddle

textslider.on("mounted", () => {
  if (textslider.length === 1) {
	textslider.options = {
	  pagination: false
	}
  }
});

Expected Behaviour

Hide the single dot

@despecial despecial added the bug Something isn't working label Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant