My checkbox is automatically unchecking, why?
When a button is clicked, I return an HTML component called cards, which contains a checklist.
card = dbc.Card([
dbc.CardHeader('Check List'),
dbc.CardBody(
dcc.Checklist(
options=[
{'label': 'Gas On', 'value': 'NYC'},
{'label': 'Enough gas left', 'value': 'enough_gas_left'},
{'label': 'Correct gas flow', 'value': 'correct_gas_flow'},
{'label': 'Correct gas type', 'value': 'correct_gas_type'},
{'label': 'Gas Cap clean', 'value': 'gas_cal_clea'},
{'label': 'Correct wire', 'value': 'correct_wire'},
{'label': 'Correct wire wheels', 'value': 'correct_wire_wheels'},
{'label': 'Enough wire left', 'value': 'enough_material_left'},
{'label': 'Wire straighter correctly adjusted', 'value': 'wire_straighter_correctly_adjusted'},
{'label': 'Wire roller at torch correctly adjusted', 'value': 'wire_roller_at_torch_correctly_adjusted'},
{'label': 'Correct diameter roller at torch', 'value': 'correct_diameter_roller_at_torch'},
{'label': 'Correct tip diameter', 'value': 'correct_tip_diameter'},
{'label': 'Tip tightened', 'value': 'tip_tightened'},
{'label': 'Filtration On', 'value': 'filtration_on'},
{'label': 'Filters clean', 'value': 'filers_clean'},
{'label': 'Compressor On', 'value': 'compressor_on'},
{'label': 'Compressor clean', 'value': 'compressor clean'},
{'label': 'Base Plate clamped correctly', 'value': 'base_plate_clamped'},
],
values=[],
id='check_list_before_starting',
)
)
], style={'width': '1000px'}, className="mx-auto")