Skip to content

Commit 8abce32

Browse files
committed
chore: v1.0.6 Release
1 parent 073b4c1 commit 8abce32

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ android {
1313
minSdkVersion safeExtGet('minSdkVersion', 16)
1414
targetSdkVersion safeExtGet('targetSdkVersion', 28)
1515
versionCode 1
16-
versionName "1.0.5"
16+
versionName "1.0.6"
1717
}
1818
buildTypes {
1919
release {

android/src/main/java/com/inkind/RNMoneyInput/RNMoneyInputModule.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,8 @@ open class MoneyTextWatcher(
243243
val isSuffixSymbol = content.last().isDigit() == false
244244
if (isSuffixSymbol) {
245245
this.caretPosition = min(this.caretPosition,content.length - 1)
246-
}
247-
248-
if (content == "$0.00") {
249-
this.caretPosition = 5
250-
} else if (this.caretPosition == 0) {
251-
this.caretPosition = 1
246+
} else {
247+
this.caretPosition = content.length
252248
}
253249
}
254250

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@inkindcards/react-native-money",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "A fully native TextInput component that allows currency input with a right to left text aligment",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",

0 commit comments

Comments
 (0)