Use "input" event instead of "keyup" event for migration form (#26602)

Otherwise, "pasted" content won't update the UI.
pull/26595/head^2
wxiaoguang 1 year ago committed by GitHub
parent 79c3329502
commit ead52dd96c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      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);

Loading…
Cancel
Save