File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -217,15 +217,15 @@ export class S3FileInput extends globalThis.HTMLElement {
217217 async submitHandler ( event ) {
218218 event . preventDefault ( )
219219 this . form ?. dispatchEvent ( new window . CustomEvent ( "upload" ) )
220- await Promise . all ( this . form ?. pendingRquests )
220+ await Promise . all ( this . form ?. pendingRequests )
221221 this . form ?. requestSubmit ( event . submitter )
222222 }
223223
224224 uploadHandler ( ) {
225225 if ( this . files . length && ! this . upload ) {
226226 this . upload = this . uploadFiles ( )
227- this . form . pendingRquests = this . form ?. pendingRquests || [ ]
228- this . form . pendingRquests . push ( this . upload )
227+ this . form . pendingRequests = this . form ?. pendingRequests || [ ]
228+ this . form . pendingRequests . push ( this . upload )
229229 }
230230 }
231231
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ describe("S3FileInput", () => {
5555 test ( "submitHandler" , async ( ) => {
5656 const form = document . createElement ( "form" )
5757 document . body . appendChild ( form )
58- form . pendingRquests = [ ]
58+ form . pendingRequests = [ ]
5959 form . requestSubmit = mock . fn ( form . requestSubmit )
6060 form . dispatchEvent = mock . fn ( form . dispatchEvent )
6161 const submitButton = document . createElement ( "button" )
@@ -82,7 +82,7 @@ describe("S3FileInput", () => {
8282 input . uploadHandler ( )
8383 console . log ( input . upload )
8484 assert ( input . upload )
85- assert ( form . pendingRquests )
85+ assert ( form . pendingRequests )
8686 } )
8787
8888 test ( "fromDataHandler" , ( ) => {
You can’t perform that action at this time.
0 commit comments