From 1a901df7ebf68e96a55d38278a7c535e050480b5 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 ee2ec01943305..3bd0e6d72c5b3 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);