Attachment bug with Add Post Widget

After adding an attachment to post on the widget the form is deactivate and submit don't work. If we remove the attachment the form works and the post is submited. In console the fllowing error appear when an attachment is selected: TypeError: Cannot read properties of undefined (reading 'files')
at o.handleAttachmentUpload (PostForm.vue:295:1)
at Ge (vue.esm.js:1872:26)
at o.n (vue.esm.js:2193:9)
at Ge (vue.esm.js:1872:26)
at e.$emit (vue.esm.js:3912:9)
at o.<anonymous> (form-file.js:303:12)
at Ge (vue.esm.js:1872:26)
at fn.run (vue.esm.js:4593:9)
at pn (vue.esm.js:4335:13)
at Array.<anonymous> (vue.esm.js:1998:12)