From ead52dd96ca86617ecddd819f23322d71c63d01f Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sun, 20 Aug 2023 22:36:07 +0800 Subject: [PATCH] Use "input" event instead of "keyup" event for migration form (#26602) Otherwise, "pasted" content won't update the UI. --- web_src/js/features/repo-migration.js | 6 +++--- 1 file 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);