Skip to content

Commit

Permalink
Use "input" event instead of "keyup" event for migration form (go-git…
Browse files Browse the repository at this point in the history
…ea#26602)

Otherwise, "pasted" content won't update the UI.
  • Loading branch information
wxiaoguang authored and GiteaBot committed Aug 20, 2023
1 parent b643b2c commit 1a901df
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 1a901df

Please sign in to comment.