Skip to content

Commit d46f52a

Browse files
committed
chore: fix comment correctness
1 parent 52efb3b commit d46f52a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/user-event/type.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ async function type(
212212
// `-${newEntry}`
213213
// we also preserve the prevWasMinus when the value is unchanged due
214214
// to typing an invalid character (typing "-a3" results in "-3")
215+
// same applies for the decimal character.
215216
if (currentElement().type === 'number') {
216217
const newValue = currentValue()
217218
if (newValue === prevValue && newEntry !== '-') {

0 commit comments

Comments
 (0)