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 <wxiaoguang@gmail.com>
(cherry picked from commit c99374b151)
This commit is contained in:
Giteabot 2023-08-20 23:29:16 +08:00 committed by Earl Warren
parent 98820fe4f2
commit b31c44894e
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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);