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.
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
tick()
inonMount
to wait for DOM rendering.Further information
/-