The fix above is now merged, looks good here on meta, hope it’s the same on your instance @tvavrda, thanks for the report!
I tried to repro this on a simple codepen so I could report upstream, but I can’t repro. Something else on our app might contribute to the problem, trouble is, not sure how to track down what else is a contributing factor.