Skip to content

Commit

Permalink
Use "input" event instead of "keyup" event for migration form (#26602)
Browse files Browse the repository at this point in the history
Otherwise, "pasted" content won't update the UI.
  • Loading branch information
wxiaoguang authored Aug 20, 2023
1 parent 79c3329 commit ead52dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web_src/js/features/repo-migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ead52dd

Please sign in to comment.