From c99374b1510249e3f8a535cdecd6cf1d5637e0ef Mon Sep 17 00:00:00 2001 From: Giteabot Date: Sun, 20 Aug 2023 23:29:16 +0800 Subject: [PATCH] Use "input" event instead of "keyup" event for migration form (#26602) (#26605) Backport #26602 by @wxiaoguang Otherwise, "pasted" content won't update the UI. Co-authored-by: wxiaoguang --- 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 ee2ec0194330..3bd0e6d72c5b 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);