diff --git a/buildSrc/src/main/kotlin/ComponentVersions.kt b/buildSrc/src/main/kotlin/ComponentVersions.kt index 055d8762..df447e12 100644 --- a/buildSrc/src/main/kotlin/ComponentVersions.kt +++ b/buildSrc/src/main/kotlin/ComponentVersions.kt @@ -6,7 +6,7 @@ object ComponentVersions { const val imageSliderVersion = "1.0.8" const val phoneNumberVersion = "1.0.2" const val dialogsVersion = "1.4.0" - const val cardInputViewVersion = "1.2.3" + const val cardInputViewVersion = "1.2.4" const val quantityPickerViewVersion = "1.2.8" const val timelineViewVersion = "1.0.1" const val touchDelegatorVersion = "1.0.0" diff --git a/libraries/card-input-view/src/main/java/com/trendyol/cardinputview/CardInputView.kt b/libraries/card-input-view/src/main/java/com/trendyol/cardinputview/CardInputView.kt index 1dc67d53..99693c2e 100644 --- a/libraries/card-input-view/src/main/java/com/trendyol/cardinputview/CardInputView.kt +++ b/libraries/card-input-view/src/main/java/com/trendyol/cardinputview/CardInputView.kt @@ -304,7 +304,7 @@ class CardInputView : ConstraintLayout { private fun setCardNumberValidity(isValid: Boolean) { val viewState = binding.viewState - binding.viewState = viewState?.copy(cardNumberValid = isValid) + binding.viewState = viewState?.copy(cardNumberValid = isValid, shouldShowErrors = !isValid) cardNumberInputErrorListener(cardNumberValid = isValid) }