When an attribute checkbox field has many options (i.e. 40+) and a checkbox after around the 15th item gets checked, the page jumps down. One has to scroll back to be able to check another box with the same behaviour.
I may have found the problem:
.hp-field input[type="checkbox"] {
position: absolute;
}
Because of this, these hidden checkboxes are not contained inside the scrollable field, but put below the field as well. If there is ’enough’ space left below (because of other content), this jumping is the only unwanted behaviour. If there is not enough space a huge white space is created and the top of the page disappears.
The jumping part occurs in the Add Listing and Update Listing pages as well as in the filter section, the layout issues only on mentioned pages.
Adding custom CSS to set the position to relative solved the problem for me. But I am not sure if this is the best solution, so any feedback is welcome
This subject was mentioned earlier in this topic.
I’m using ListingHive btw.
Thank you!
EDIT:
The same goes for radio buttons.
And also, the ’hidden’ checkboxes/buttons are live, clickable elements on the page. Humans won’t see them because of opacity 0, but the visibility:hidden is overridden by the !important tag:
.hp-field input[type=checkbox],
.hp-field input[type=radio] {
margin-right:.5rem;
cursor:pointer;
visibility:visible!important
}
.hp-field input[type=checkbox],
.hp-field input[type=radio] {
opacity:0;
position:absolute;
margin:0;
visibility:hidden
}
This means that with position:absolute users can click a checkbox or radio button by accident while clicking another field below the scrollable one.
Setting the opacity to 1 while having a scrollable field in the Add/Update Listing page will help you replicate this issue.