Wikiki / bulma-checkradio

Bulma's extension to display better checkbox and radio imputs
MIT License
71 stars 43 forks source link

Checking the checkbox can make the page jump. #29

Open nchutchind opened 5 years ago

nchutchind commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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...