diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-08-20 22:36:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-20 16:36:07 +0200 |
commit | ead52dd96ca86617ecddd819f23322d71c63d01f (patch) | |
tree | c834a4415e8eb1278d90814f82a90b536766ceb0 | |
parent | 79c3329502217b664ef81d3f7f65aaf58282d29d (diff) | |
download | gitea-ead52dd96ca86617ecddd819f23322d71c63d01f.tar.gz gitea-ead52dd96ca86617ecddd819f23322d71c63d01f.zip |
Use "input" event instead of "keyup" event for migration form (#26602)
Otherwise, "pasted" content won't update the UI.
-rw-r--r-- | web_src/js/features/repo-migration.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web_src/js/features/repo-migration.js b/web_src/js/features/repo-migration.js index ee2ec01943..3bd0e6d72c 100644 --- a/web_src/js/features/repo-migration.js +++ b/web_src/js/features/repo-migration.js @@ -15,9 +15,9 @@ export function initRepoMigration() { checkAuth(); setLFSSettingsVisibility(); - $user.on('keyup', () => {checkItems(false)}); - $pass.on('keyup', () => {checkItems(false)}); - $token.on('keyup', () => {checkItems(true)}); + $user.on('input', () => {checkItems(false)}); + $pass.on('input', () => {checkItems(false)}); + $token.on('input', () => {checkItems(true)}); $mirror.on('change', () => {checkItems(true)}); $('#lfs_settings_show').on('click', () => { showElem($lfsEndpoint); return false }); $lfs.on('change', setLFSSettingsVisibility); |