This line is to temporarily remove the select element to avoid recreating a second dropdown shell when mobile.selectmenu runs. The select element is still appended to the DOM at the end, after mobile.selectmenu has finised.