diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/elements/StandardInput.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/elements/StandardInput.kt index 320c642..3361d99 100644 --- a/src/jsMain/kotlin/dev/inmo/jsuikit/elements/StandardInput.kt +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/elements/StandardInput.kt @@ -11,7 +11,7 @@ import org.w3c.dom.HTMLInputElement @Composable fun StandardInput( type: InputType, - value: T, + value: T? = null, vararg modifiers: UIKitModifier, disabled: Boolean = false, placeholder: String? = null, @@ -24,7 +24,7 @@ fun StandardInput( placeholder ?.let(::placeholder) - value.let { + value ?.let { when (it) { is String -> value(it) is Number -> value(it)