Browse Source

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

Backport #26602 by @wxiaoguang

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

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
tags/v1.20.3
Giteabot 9 months ago
parent
commit
c99374b151
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      web_src/js/features/repo-migration.js

+ 3
- 3
web_src/js/features/repo-migration.js View File

@@ -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