Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
nidhal-labidi opened this issue Nov 18, 2024 · 0 comments
Open
2 tasks done

Comments

@nidhal-labidi
Copy link
Contributor

nidhal-labidi commented Nov 18, 2024

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

/-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant