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

🐛 Textarea: Sett riktig høyde når brukt i Modal + StrictMode #2679

Merged
merged 3 commits into from
Jan 31, 2024

Conversation

HalvorHaugan
Copy link
Contributor

@HalvorHaugan HalvorHaugan commented Jan 30, 2024

Fiks for #2671

Feilen ble innført i #2457
(Mest sannsynlig det at ResizeObserver ikke lenger fikk en debounced handleResize())

Selve fiksen er på linje 28 i TextareaAutoSize.tsx.

Fant aldri rot-årsaken, men det var trolig ikke én enkelt årsak. Det var flere endringer som så ut til å kunne fikse feilen. Symptomet var en mer eller mindre uendelig render-loop, sannsynligvis forårsaket av en kombinasjon av forhold. For eksempel hjalp det å fjerne flushSync. Men den fiksen jeg endte opp med er den "minst risikable" jeg fant.

Copy link

changeset-bot bot commented Jan 30, 2024

🦋 Changeset detected

Latest commit: 95498b8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@navikt/ds-react Patch
@navikt/ds-css Patch
@navikt/ds-tokens Patch
@navikt/ds-tailwind Patch
@navikt/aksel-icons Patch
@navikt/aksel Patch
@navikt/aksel-stylelint Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jan 30, 2024

Storybook demo

5de3b42f4 | 61 komponenter | 402 stories

@HalvorHaugan HalvorHaugan merged commit 34acbb8 into main Jan 31, 2024
2 checks passed
@HalvorHaugan HalvorHaugan deleted the textarea-strict-fix branch January 31, 2024 09:35
@github-actions github-actions bot mentioned this pull request Jan 31, 2024
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

Successfully merging this pull request may close these issues.

2 participants