Skip to content

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

@nidhal-labidi

Description

@nidhal-labidi

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

  • Use tick() in onMount to wait for DOM rendering.
  • Ensure that the file input field is accessible before starting the connection process

Further information

/-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions