mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Use "input" event instead of "keyup" event for migration form (#26602)
Otherwise, "pasted" content won't update the UI.
This commit is contained in:
		@@ -15,9 +15,9 @@ export function initRepoMigration() {
 | 
				
			|||||||
  checkAuth();
 | 
					  checkAuth();
 | 
				
			||||||
  setLFSSettingsVisibility();
 | 
					  setLFSSettingsVisibility();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  $user.on('keyup', () => {checkItems(false)});
 | 
					  $user.on('input', () => {checkItems(false)});
 | 
				
			||||||
  $pass.on('keyup', () => {checkItems(false)});
 | 
					  $pass.on('input', () => {checkItems(false)});
 | 
				
			||||||
  $token.on('keyup', () => {checkItems(true)});
 | 
					  $token.on('input', () => {checkItems(true)});
 | 
				
			||||||
  $mirror.on('change', () => {checkItems(true)});
 | 
					  $mirror.on('change', () => {checkItems(true)});
 | 
				
			||||||
  $('#lfs_settings_show').on('click', () => { showElem($lfsEndpoint); return false });
 | 
					  $('#lfs_settings_show').on('click', () => { showElem($lfsEndpoint); return false });
 | 
				
			||||||
  $lfs.on('change', setLFSSettingsVisibility);
 | 
					  $lfs.on('change', setLFSSettingsVisibility);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user