Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Checking the checkbox can make the page jump. #29

Open
nchutchind opened this issue Dec 10, 2018 · 2 comments
Open

Checking the checkbox can make the page jump. #29

nchutchind opened this issue Dec 10, 2018 · 2 comments
Labels

Comments

@nchutchind
Copy link
Contributor

I don't know all the details here, but when I dynamically add checkradio buttons to the page and then click on them, the entire page jumps partially out of the viewport.

I was able to stop this from happening by changing the input for the checkradio to have display: none

You don't need to see the checkbox anyway, so this seems like the way it should be anyway.

@Wikiki
Copy link
Owner

Wikiki commented Feb 18, 2019

Hi,

have you checked if display: none is set then the input value is sent when submitting the form ?
My (poor) memory tells me this choice was related to the form submit behavior.

@nchutchind
Copy link
Contributor Author

Ah, that's true. I'll check. I'm currently using the checkboxes for interaction rather than form submission. Maybe it would work to use visibility:hidden and position:absolute instead...

@Wikiki Wikiki added the bug label Feb 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants