I can't type/write in ImGui::InputText

I put this 2 lines inside a ImGui::PopupModal…

static char name[128] = "";
ImGui::Text("Nome: "); ImGui::SameLine(); ImGui::InputText("", name, IM_ARRAYSIZE(name));

It renders Ok, but when I click in the input text field to type anything, the input text cursor goes out of focus imediatelly and I can write nothing.

Here is the full code:

ImGui::OpenPopup("Criar Eixo");
		if (ImGui::BeginPopupModal("Criar Eixo", NULL))
		{
			
			ImGui::Text(u8"Insira as informações do novo eixo");

			// Testing behavior of widgets stacking their own regular popups over the modal.
			static int item = 1;
			static char name[128] = "";
			static float color[4] = { 0.4f,0.7f,0.0f,0.5f };
			ImGui::Text("Nome: "); ImGui::SameLine(); ImGui::InputText("", name, IM_ARRAYSIZE(name));
			ImGui::Text("Tipo: "); ImGui::SameLine(); ImGui::Combo("", &item, "Tipo A\0Tipo B\0Tipo C\0\0");

			ImGui::Separator();

			ImGui::Text("Cor:"); ImGui::SameLine();	ImGui::ColorEdit4("", color);
			
			ImGui::Separator();
			
			// Config a red button style:
			ImGui::PushStyleColor(ImGuiCol_Button,			(ImVec4)ImColor::ImColor(BUTTON_COLOR, 0, 0));
			ImGui::PushStyleColor(ImGuiCol_ButtonHovered,	(ImVec4)ImColor::ImColor(BUTTON_COLOR_HOVERED, 0, 0));
			ImGui::PushStyleColor(ImGuiCol_ButtonActive,	(ImVec4)ImColor::ImColor(BUTTON_COLOR_ACTIVE, 0, 0));

			if (ImGui::Button("Cancelar")) {
				ImGui::CloseCurrentPopup();
				app.show_gui.create_eixo = false;
			}
			// End style:
			ImGui::PopStyleColor(3);
			
			ImGui::SameLine();

			// Config a green button style:
			ImGui::PushStyleColor(ImGuiCol_Button,			(ImVec4)ImColor::ImColor(0, BUTTON_COLOR, 0));
			ImGui::PushStyleColor(ImGuiCol_ButtonHovered,	(ImVec4)ImColor::ImColor(0, BUTTON_COLOR_HOVERED, 0));
			ImGui::PushStyleColor(ImGuiCol_ButtonActive,	(ImVec4)ImColor::ImColor(0, BUTTON_COLOR_ACTIVE, 0));

			if (ImGui::Button("Criar")) {
				ImGui::CloseCurrentPopup();
				app.show_gui.create_eixo = false;
			}

			// End style:
			ImGui::PopStyleColor(3);
				
			ImGui::EndPopup();
		} 

What I have to do?

Resolved!

The first argument (label) must be filled.

Please read the FAQ.