When I use the middle mouse button to pick up an item into the first row of my inventory, it seems that I've successfully copied it. However, as soon as I try to actually use this block, it either reverts back to its state before using the middle mouse button or simply disappears. Interestingly, when I pick up an item with the middle mouse button and then reopen my inventory, I'm able to place the block normally.