To reproduce:
1. /gamemode 0
2. /clear
3. /replaceitem entity @p slot.inventory.26 grass
4. Pick block on grass
5. Open your inventory, look at your armor/crafting slots
Which slot is replaced depends on which hotbar slot you have selected:
1: crafting output
2-5: crafting input
6-9: armor
Linked issues
is duplicated by 6
1 more links
Aren't slots 1-9 hotbar slots? Could you please explain the bug a little more in detail?