No, it's a glitch.
Absolutely. Accidentally finding yourself buying the wrong item, selling the wrong item, disenchanting the wrong item, or eating ingredients instead of putting them in a container is due to poor kb+m/PC UI implementation. I love the game, but it absolutely svcks that it is possible to make a mistake when trying to barter or store items.
IMO it's the only bad thing about the game, I shouldn't need to save before entering dialogue, barter, or container interaction, just in case my selections go wrong. Very poor UI design.
Otherwise the game is fantastic.