compose-us / flottform

A better UX for file uploads #build-in-public
https://github.com/compose-us/build-in-public/blob/main/README.md#ux-improvement-for-file-uploads-in-web-forms-working-title-flottform
Other
1 stars 0 forks source link

Fix null reference error when sending files using the extension #95

Open nidhal-labidi opened 5 days ago

nidhal-labidi commented 5 days ago

Description

There is a null reference error (TypeError: Cannot read properties of null (reading 'files')) when attempting to send files via the extension. This issue occurs because the DOM has not fully rendered before the onMount function executes, and the inputField is accessed prematurely. The task is to ensure that the file input is accessible before initialization.

Links / References

tick()

Tasks / Definition of Done

Further information

/-