summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-11 01:22:40 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-11 01:22:40 +0100
commit63f00930d5963d725526e9b33e5bdc311c8da88d (patch)
treef7975422e00373559680c5abae41e608a7843729
parentFix some browser navigation paths (diff)
downloadseven-wonders-63f00930d5963d725526e9b33e5bdc311c8da88d.tar.gz
seven-wonders-63f00930d5963d725526e9b33e5bdc311c8da88d.tar.bz2
seven-wonders-63f00930d5963d725526e9b33e5bdc311c8da88d.zip
Fix text inputs
-rw-r--r--sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt b/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt
index 080519a8..326f2fc4 100644
--- a/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt
+++ b/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt
@@ -72,14 +72,14 @@ fun RBuilder.bpInputGroup(
large: Boolean = false,
placeholder: String = "",
rightElement: ReactElement? = null,
- value: String = "",
+ value: String? = null,
onChange: (Event) -> Unit,
): ReactElement = child(InputGroup::class) {
attrs {
this.large = large
this.placeholder = placeholder
this.rightElement = rightElement
- this.value = value
+ value?.let { this.value = it }
this.onChange = onChange
}
}
bgstack15