Skip to content

fix case where textarea doesn't reset state#2615

Merged
marvinhagemeister merged 5 commits intomasterfrom
fix-textarea
Jul 11, 2020
Merged

fix case where textarea doesn't reset state#2615
marvinhagemeister merged 5 commits intomasterfrom
fix-textarea

Conversation

@JoviDeCroock
Copy link
Copy Markdown
Member

@JoviDeCroock JoviDeCroock commented Jul 10, 2020

Fixes: #2604

The test doesn't reproduce this yet I think it's related to uncontrolled/controlled which isn't emulated correctly in jsdom, I tried it out in demo and this fixes the issue.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 10, 2020

Size Change: -36 B (0%)

Total Size: 40 kB

Filename Size Change
compat/dist/compat.js 3.19 kB -12 B (0%)
compat/dist/compat.module.js 3.22 kB -12 B (0%)
compat/dist/compat.umd.js 3.24 kB -12 B (0%)
ℹ️ View Unchanged
Filename Size Change
debug/dist/debug.js 2.99 kB 0 B
debug/dist/debug.module.js 2.98 kB 0 B
debug/dist/debug.umd.js 3.08 kB 0 B
devtools/dist/devtools.js 184 B 0 B
devtools/dist/devtools.module.js 195 B 0 B
devtools/dist/devtools.umd.js 260 B 0 B
dist/preact.js 3.96 kB 0 B
dist/preact.min.js 3.98 kB 0 B
dist/preact.module.js 3.97 kB 0 B
dist/preact.umd.js 4.01 kB 0 B
hooks/dist/hooks.js 1.09 kB 0 B
hooks/dist/hooks.module.js 1.11 kB 0 B
hooks/dist/hooks.umd.js 1.17 kB 0 B
test-utils/dist/testUtils.js 437 B 0 B
test-utils/dist/testUtils.module.js 439 B 0 B
test-utils/dist/testUtils.umd.js 515 B 0 B

compressed-size-action

@coveralls
Copy link
Copy Markdown

coveralls commented Jul 10, 2020

Coverage Status

Coverage remained the same at 99.798% when pulling e9a29a7 on fix-textarea into ff0bf29 on master.

@marvinhagemeister
Copy link
Copy Markdown
Member

Note that we don't use jsdom in our tests. They typically run in a chrome instance via karma. But it could be that the bug doesn't manifest in Chrome as easily as it may in other browsers.

Comment thread compat/test/browser/textarea.test.js Outdated
JoviDeCroock and others added 3 commits July 10, 2020 22:03
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
@developit developit mentioned this pull request Jul 10, 2020
Copy link
Copy Markdown
Member

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

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

Awesome! Learned something new about text area behaviour 🙌💯

@marvinhagemeister marvinhagemeister merged commit 816df11 into master Jul 11, 2020
@marvinhagemeister marvinhagemeister deleted the fix-textarea branch July 11, 2020 03:45
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.

Uncontrolled textarea

4 participants