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

Add fixture to demonstate bug where number input is cleared #18703

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions fixtures/dom/src/components/fixtures/number-inputs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,23 @@ function NumberInputs() {
that we can not control for.
</p>
</TestCase>

<TestCase
title="Unfocusing"
description="Does not clean the input when two decimal separators are typed">
<TestCase.Steps>
<li>Type "1."</li>
<li>Unfocus</li>
<li>Type ".." at the end of value</li>
<li>Unfocus again</li>
</TestCase.Steps>

<TestCase.ExpectedResult>
The value should not disappear
</TestCase.ExpectedResult>

<NumberTestCase />
</TestCase>
</FixtureSet>
);
}
Expand Down