diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index 2dfb01826a2..b2a8c7e72ef 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -312,6 +312,10 @@ void CreateDialog::_update_search() { } } + if (search_box->get_text() == "") { + to_select = root; + } + if (to_select) { to_select->select(0); search_options->scroll_to_item(to_select);