Candlesticks rangebreaks don't work properly when the chart is zoomed

I created a FX candlesticks chart with rangebreaks to remove gaps. It works well when the graph is first loaded:


But when I zoom on the graph and scrool within it with the Pan tool, the gaps appear again, which make the graph bug:

It seems that the rangebreaks isn’t applied during the zoom. I’m using plotly 5.18.0.

In order to provide a snippet that reproduces this behavior, I would need to provide a dataset…