If a pack is selected from the Available list or deselected from the Selected list in the pack menu and then the game is switched from windowed mode to full screen or vice versa, the game reverts the changes that have been made. This is not the case in 1.16.1 and older versions.
The bug is caused by the fix of
Before reproducing the bug using either method, open the "Data Packs" or "Resource Packs" menu.
- Drag and drop a pack into the menu if there is nothing yet, and then select it.
- Press F11 to switch to full screen or windowed mode.
→ The pack is deselected again.
- Choose a pack to deselect.
- Press F11 to change the display mode.
→ The pack is selected again.