File tree Expand file tree Collapse file tree
components-compose/src/main/java/uk/gov/hmrc/components/compose/molecule/input Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ fun CurrencyInputView(
3939 errorContentDescription : String? = null,
4040 singleLine : Boolean = true,
4141 enableDecimal : Boolean = true,
42- maxChars : Int? = null
42+ maxChars : Int? = null,
43+ isCustomErrorInputHandle : Boolean = false
4344) {
4445 // pattern matches a decimal number
4546 val decimalPattern = remember { Regex (" ^([0-9]*)(\\ .?)([0-9]*)$" ) }
@@ -74,7 +75,8 @@ fun CurrencyInputView(
7475 singleLine = singleLine,
7576 keyboardOptions = KeyboardOptions (
7677 keyboardType = if (enableDecimal) KeyboardType .Decimal else KeyboardType .Number
77- )
78+ ),
79+ isCustomErrorInputHandle = isCustomErrorInputHandle
7880 )
7981}
8082
@@ -86,7 +88,7 @@ fun CurrencyInputViewPreview() {
8688 onInputValueChange = { },
8789 labelText = " Label" ,
8890 hintText = " Hint" ,
89- placeholderText = " Text" ,
91+ placeholderText = " Text"
9092 )
9193 }
9294}
You can’t perform that action at this time.
0 commit comments