Sometimes when you are scrolling hotbar the item selected in causes a bug!
MCPE-29798 Contradicting Slots Glitch [Xbox One]