Selectmenu: Introduce _renderButtonItem method

Fixes #10142
ps: is this the correct place for test like this?