1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-02 01:17:43 +03:00
This commit is contained in:
wxiaoguang 2024-12-30 22:04:04 +08:00
parent dc10881f9a
commit db2c4511a4

View File

@ -11,7 +11,7 @@ export function initRepoNew() {
const updateUiAutoInit = () => {
inputAutoInit.checked = Boolean(inputGitIgnores.value || inputLicense.value);
};
form.addEventListener('input', updateUiAutoInit);
form.addEventListener('change', updateUiAutoInit);
updateUiAutoInit();
const inputRepoName = form.querySelector<HTMLInputElement>('input[name="repo_name"]');