mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Make submit event code work with both jQuery event and native event (#29223)
Partially related to #29200 and fix other potential bugs. Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		| @@ -211,6 +211,7 @@ export function loadElem(el, src) { | ||||
| const needSubmitEventPolyfill = typeof SubmitEvent === 'undefined'; | ||||
|  | ||||
| export function submitEventSubmitter(e) { | ||||
|   e = e.originalEvent ?? e; // if the event is wrapped by jQuery, use "originalEvent", otherwise, use the event itself | ||||
|   return needSubmitEventPolyfill ? (e.target._submitter || null) : e.submitter; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user