Selectmenu: Introduce _renderButtonItem method

Fixes #10142
Yes, this is the correct file for the test.