The picked item doesn't actually move to the hotbar, but it appears so to the client.
Inventory not working properly
Cannot set down blocks
New pickup block function bugged
Using the Pick Block key in survival mode does not work properly
Pick block not exchanging items on Survival
Pick block on items outside the hotbar visually replaces armor/crafting slot with duplicate of the stack that was picked