Having trouble displaying the value of an input type="range". Upon loading the page, the bubble is positioned on the left side of the input.
https://i.sstatic.net/tj5AZ.png
My objective is to always have that bubble above the slider thumb. Like this.
https://i.sstatic.net/V4FcX.png
It's strange that when I click on the slider thumb to adjust the value, the issue disappears and the bubble works correctly. This problem seems to only occur upon initial page load. Any ideas on what could be causing this? Thank you.
For reference, here is the link to the Codesandbox: https://codesandbox.io/s/suspicious-tereshkova-ujk45?file=/src/index.css