We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52efb3b commit d46f52aCopy full SHA for d46f52a
src/user-event/type.js
@@ -212,6 +212,7 @@ async function type(
212
// `-${newEntry}`
213
// we also preserve the prevWasMinus when the value is unchanged due
214
// to typing an invalid character (typing "-a3" results in "-3")
215
+ // same applies for the decimal character.
216
if (currentElement().type === 'number') {
217
const newValue = currentValue()
218
if (newValue === prevValue && newEntry !== '-') {
0 commit comments