Selectmenu: Introduce _renderButtonItem method

Fixes #10142
Why is this part of the test?