Demos: Popup: Removed weird (and almost certainly accidental) popup-inside-popup embedding.
(cherry picked from commit 4523761fa9a36b69e557813dc5753eec1134c72a)
Tests: Integration: Popup: Add test to make sure popup elements do not have focus after the popup is closed. Tests #5974. (applied by hand from 273624b864b52707aeb3136a26b53afdcfe45db1)
Revert "Popup: Hide popup when offscreen. Fixes #5892. (applied by hand from 556a4e3304f30b25c312253474d98ee069a52cbf)"

This reverts commit c3ddbdd886392ef1496cf56b8e42b024e357cb03.
Popup: Set visibility: hidden instead of display: none to remove the need for un-hiding before height calculation.

This uses the solution mentioned in #5912 instead of the original, display: none -based solution for #5892.
(cherry picked from commit 62bb9e57515b0e4e1ddd10ef29a1fa40d6ce4dc0)
Revert "Custom select: Must un-hide popup container before calculating height."

This reverts commit 3d4108d64646b846aa6225480560c913f935f225.
Popup: Whitespace fix. (Applied by hand from 31742ae413762ccb99f929477daf62ab4d5354a8)
Popup: Blur any focused elements inside container, including the container itself, upon closing. Fixes #5974 - keyboard does not disappear when after the pop-up is closed.
(cherry picked from commit 4659c97e427892030953d8b583e46fd48d5d989f)

Conflicts:
	js/widgets/popup.js