mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2026-10-28 15:03:24 +00:00
value in StandardInput is nullable
This commit is contained in:
1 parent
1eb14becde
commit
8178fa9d39
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user