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
#26605)

Backport #26602 by @wxiaoguang

Otherwise, "pasted" content won't update the UI.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
  • Loading branch information
GiteaBot and wxiaoguang authored Aug 20, 2023
1 parent b643b2c commit c99374b
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 c99374b

Please sign in to comment.