Ssteps to reproduce:
1.open a world and enchant a spear of any kinds (fire aspect or bane of arthropods etc.)
2.equip offhand with that spear
3.try to attack some mobs with the spear
Observed result: the enchantments don’t work
Expected result: the enchantments work correctly
Additions: if you attack with the spear in offhand when holding any enchanted weapon in mainhand, the spear uses the enchantments of mainhand weapon
Thank you for helping us improve Minecraft! We saved your files: