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

"loop" and checkbox #1260

Open
2 tasks done
DianaMok opened this issue Dec 27, 2023 · 1 comment
Open
2 tasks done

"loop" and checkbox #1260

DianaMok opened this issue Dec 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@DianaMok
Copy link

Checks

Version

v4.1.3

Description

when the loop type is set, it is impossible to make blocks inside the li with an input checkbox, since input selection does not work.

Reproduction Link

No response

Steps to Reproduce

		<div class="splide">
			<div class="splide__track">
				<ul class="splide__list">			
                                          <li class="splide__slide">
						<input class="total-box__checkbox-input" type="checkbox" id="check-4" name="check-4">
						<label class="total-box__checkbox" for="check-4">
							<span class="total-box total-box__box-4">
								<span class="total-box__title">
									text
								</span>
								<span class="total-box__check">
									<span class="total-box__checkbox-check">
									</span>
								</span>
							</span>
						</label>
					</li>
	</ul>
</div>

Expected Behaviour

input type checkbox must be clickable regardless of the carousel type

@DianaMok DianaMok added the bug Something isn't working label Dec 27, 2023
@Webberjo
Copy link

Webberjo commented Jan 29, 2024

When the slider is set to loop, Splide creates clones of the slides which means there will be multiple inputs on the page with the same ID. Even if the checkbox was clickable, it would not be valid HTML.

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

2 participants