My bad, short correction: Items don’t disappear, they are visible inside shelf. However, if you click on one of the items, you grab it and replace it with other item from your inventory, even if it isn’t in currently selected slot. It’s impossible to take the item out without replacing it with something player is currently holding. Once jukebox is playing, the behaviour of a shelf is generally erratic.
My bad, short correction:
Items don’t disappear, they are visible inside shelf. However, if you click on one of the items, you grab it and replace it with other item from your inventory, even if it isn’t in currently selected slot. It’s impossible to take the item out without replacing it with something player is currently holding. Once jukebox is playing, the behaviour of a shelf is generally erratic.