Skip to content

Commit 245ba38

Browse files
committed
[BOOK-259] fix: 책 페이지 TextField 선행 '0' 입력 제거
가격이나 수량등을 위한 숫자 입력 패턴이 아닌, 책 페이지 입력이므로 선행 0은 어느 경우에나 제거하는게 맞음
1 parent cbbc70f commit 245ba38

File tree

1 file changed

+0
-1
lines changed
  • core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/component/textfield

1 file changed

+0
-1
lines changed

core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/component/textfield/InputTransformation.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ val digitOnlyInputTransformation = { text: TextFieldBuffer ->
1010

1111
val transformed = when {
1212
filtered.isEmpty() -> ""
13-
filtered == "0" -> "0" // 0 하나만 허용
1413
filtered.startsWith("0") -> filtered.trimStart('0') // 선행 0 제거
1514
else -> filtered
1615
}

0 commit comments

Comments
 (0)