Skip to content

Commit ead52dd

Browse files
authored
Use "input" event instead of "keyup" event for migration form (#26602)
Otherwise, "pasted" content won't update the UI.
1 parent 79c3329 commit ead52dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web_src/js/features/repo-migration.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export function initRepoMigration() {
1515
checkAuth();
1616
setLFSSettingsVisibility();
1717

18-
$user.on('keyup', () => {checkItems(false)});
19-
$pass.on('keyup', () => {checkItems(false)});
20-
$token.on('keyup', () => {checkItems(true)});
18+
$user.on('input', () => {checkItems(false)});
19+
$pass.on('input', () => {checkItems(false)});
20+
$token.on('input', () => {checkItems(true)});
2121
$mirror.on('change', () => {checkItems(true)});
2222
$('#lfs_settings_show').on('click', () => { showElem($lfsEndpoint); return false });
2323
$lfs.on('change', setLFSSettingsVisibility);

0 commit comments

Comments
 (0)