value in StandardInput is nullable

This commit is contained in:
InsanusMokrassar 2023-03-05 18:50:59 +06:00
parent 1eb14becde
commit 8178fa9d39
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import org.w3c.dom.HTMLInputElement
@Composable
fun <T> StandardInput(
type: InputType<T>,
value: T,
value: T? = null,
vararg modifiers: UIKitModifier,
disabled: Boolean = false,
placeholder: String? = null,
@ -24,7 +24,7 @@ fun <T> StandardInput(
placeholder ?.let(::placeholder)
value.let {
value ?.let {
when (it) {
is String -> value(it)
is Number -> value(it)