Customdata does not update with button selection, why?

i want each button to have itโ€™s own hovertemplate data, but one i run this code below,
i get the correct chart with correct data but only with the customdata for the first chart
any help will be appreciated

p = p.add_trace(go.Bar(x = x_values1, y = y_values,
                   orientation='h',
                   name='',
                   customdata = code_by_day['DATE'].dt.strftime('%m-%d'),
                   hovertemplate='<br>'.join([
                    'Q: %{x}',
                    'date: %{customdata}'])
               ))

updatemenus = [{'buttons': [{'method': 'update',
                             'label': 'All',
                             'args': [{'x': [x_values1], 'y': [y_values]},
                                     {'title': {'text': 'Code/Quantite '}},
                                       ]
                                      },
                            {'method': 'update',
                             'label': 'Jul',
                             'args': [{'x': [x_values2], 'y': [Jul_code_df['CODE']]},
                                       {'customdata' : Jul_code_df['DATE'].dt.strftime('%m-%d'),
                                         'hovertemplate': '<br>'.join([
                                            'Q: %{x}',
                                            'date: %{customdata}'])},
                                       {'title': {'text': 'Code/Quantite en: Julliet'}}
                                     ]
                            },
                            {'method': 'update',
                             'label': 'Aout',
                             'args': [{'x': [x_values3], 'y': [aout_code_df['CODE']]},
                                       {'text' : aout_code_df['DATE'].dt.strftime('%m-%d'),
                                         'hovertemplate': '<br>'.join([
                                            'Q: %{x}',
                                            'date: %{customdata}'])},
                                       {'title': {'text': 'Code/Quantite en: Aout'}}
                                     ]
                            },
                            {'method': 'update',
                             'label': 'Sep',
                             'args': [{'x': [x_values4], 'y': [sep_code_df['CODE']]},
                                       {'text' : sep_code_df['DATE'].dt.strftime('%m-%d'),
                                         'hovertemplate': '<br>'.join([
                                            'Q: %{x}',
                                            'date: %{customdata}'])},
                                       {'title': {'text': 'Code/Quantite en: Sep'}}
                                     ]
                            }
                           ],
                'direction': 'down',
                'showactive': True}]

p = p.update_layout(template = 'plotly_white',
                    updatemenus=updatemenus,
                    
                   )

p.update_layout(title_text = 'Code par Quantite', yaxis=dict(dtick=1, categoryorder='total ascending'),
                height=1000, width=1050,)
p.show()