Selecting a resource pack in the menu puts a border around the selected pack. Pressing enter while it’s selected moves the pack to the Available or Selected sections. However, doing so removes the border around the pack but still keeps it selected. This is confirmed because pressing enter multiple times continues to move the same pack back and forth.
Reproduction Steps:
Open the resource packs menu
Click a pack to select it (not the arrow)
Press enter. It will move to the other section
Press enter multiple times
You’ll see the pack move back and forth with no indication of it being selected.
Thank you for helping us improve Minecraft! We saved your files: