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(FormLabel): unhandled runtime error, elem is null #4354

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

langz
Copy link
Contributor

@langz langz commented Dec 2, 2024

I think it makes sense to add the and statement: https://github.com/dnbexperience/eufemia/pull/4354/files#diff-f476207b8a837f2c0dea83ca374c5d383bcd895b0f6f10e033e12d7c0a7a3f84R142
As all following code in the if statement is dependent on that ref.current is existing.

Fixes #4352

Copy link

vercel bot commented Dec 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eufemia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 2, 2024 8:05pm

@langz langz changed the title fix(FormLabel): something fix(FormLabel): unhandled runtime error, elem is null Dec 2, 2024
@langz langz requested a review from tujoworker December 2, 2024 19:25
Copy link

codesandbox-ci bot commented Dec 2, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Member

@tujoworker tujoworker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried (hard) to create a test that replicates this issue, but was not able to. I really wonder how this is possible 😄 Hope we get more feedback, so we can create a test.

@langz langz merged commit a3414f1 into main Dec 2, 2024
10 checks passed
@langz langz deleted the fix/can-not-access-querySelector branch December 2, 2024 20:14
tujoworker pushed a commit that referenced this pull request Dec 2, 2024
## [10.59.0](v10.58.0...v10.59.0) (2024-12-02)

### ✨ Features

* **Upload:** disabling delete button when loading ([cca3388](cca3388))

### 🐛 Bug Fixes

* **FormLabel:** unhandled runtime error, elem is null ([#4354](#4354)) ([a3414f1](a3414f1)), closes [/github.com//pull/4354/files#diff-f476207b8a837f2c0dea83ca374c5d383bcd895b0f6f10e033e12d7c0a7a3f84R142](https://github.com/dnbexperience//github.com/dnbexperience/eufemia/pull/4354/files/issues/diff-f476207b8a837f2c0dea83ca374c5d383bcd895b0f6f10e033e12d7c0a7a3f84R142)
* **Upload:** disabling delete button when loading ([#4348](#4348)) ([85445b4](85445b4))
@tujoworker
Copy link
Member

🎉 This PR is included in version 10.59.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Unhandled runtime error with FormLabel.tsx
2 participants