Selectmenu: Missing comma in variable declaration

(cherry picked from commit 62206243a99de0cbafffb07b707b5536accdfad8)

Fixes gh-7405