Checkbox active class logic fails when you revert back

I’m using the checkbox component from the finsweet library, but Im having a strange bug. If I click on them, navigate away and go back it reverses the active state. anyway I can fix this? here is a video showing the error: Treet - 25 April 2024 | Loom

hey @stevenjhilario! Does this also happen on the example library?

yes it does

@stevenjhilario could you share a read-only, please?

sent you a private message

Hi @Support-Luis I was able to fix it with this code:

//reset checkboxes to its original state
$(document).ready(function() {
    $('.mix_form-block input[type="checkbox"]').attr('autocomplete', 'off');
1 Like

Thanks for sharing!