Thank you, @jinnyzor , it worked.
It just stopped highlighting the row when a cell is clicked.
I guess now I need to add a separate callback for that.
Maybe something like this below taken from here:
@app.callback(
Output("table", "style_data_conditional"),
Input("table", "derived_viewport_selected_row_ids"),
)
def style_selected_rows(selRows):
if selRows is None:
return dash.no_update
return [
{"if": {"filter_query": "{{id}} ={}".format(i)}, "backgroundColor": "yellow",}
for i in selRows
]