Is anyone else experiencing this? When I put a label around an input (such as a checkbox) then check the box. If I then reset the box value in a sheetworker (changing the value back to 0, to simulate a button that is pressed) The page scrolls back up to the top: <label>mytext <input type="checkbox" value="1" name="attr_something" /></label>
on("change:something",function(){
getAttrs(["something"],function(v){
if(v["something']=="1"){
callSomeOtherFunction();
//reset button
setAttrs({"something":"0"},{silent:true});
}
});
}); If I don't put a label around it, then the character sheet stays in place when I click the checkbox. <label for="pf-something" >mytext</label>
<input type="checkbox" value="1" name="attr_something" id="pf-something" /> But I'd rather put labels around the inputs so that 1. the labels make sense and 2. is easier (no need for customizing width and size of the opacity 0 checkbox). Also 3. for="id" doesn't do anything useful due to the multiple copies in memory (though I notice the 5e OGL sheet has labels with "for") I did some research and it seems this is a javascript issue. And the only way around it seems to be to call objectThatThrewEvent.preventDefault() or return false to the browser, neither of which we can do. stackoverflow similar issue And obviously those changes have other implications. It is just really odd that it only happens if the input is wrapped by label, and not otherwise. Is there a way this can be fixed from the server side so a label around a checkbox does not cause this behavior?