Selectmenu: Copy title attributes

Fixes #10435
Closes gh-1298