Skip to content

Commit fb9ceb0

Browse files
committed
Update StateBasedText.kt
1 parent 0e0170d commit fb9ceb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/text/StateBasedText.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ fun TextFieldBuffer() {
156156
keyboardType = KeyboardType.Phone
157157
),
158158
inputTransformation = InputTransformation.maxLength(10).then {
159-
if (asCharSequence().isDigitsOnly()) {
159+
if (!asCharSequence().isDigitsOnly()) {
160160
revertAllChanges()
161161
}
162162
},

0 commit comments

Comments
 (0)