This issue is related to single-player mode only (no LAN opened).
Jukebox music pause when game is paused with "Escape" (that's a fact).
When the advancements menu is opened, the game is paused (that's another fact).
However, the music from a jukebox still plays in the advancements menu, which is illogical (how can this jukebox play if the game is paused?).
This is simple to reproduce:
Place a jukebox and put a disc inside, then open your advancements menu. You'll hear that the music still plays.
Music is powerful. It cannot be stopped. 😃
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-118081, which is a report that has not been resolved yet.
If you want, you can upvote the parent ticket, and enable watching to receive any updates about it - if you believe you have any information that may be important for this issue, please leave a comment on the parent. Please also use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord