summaryrefslogtreecommitdiff
path: root/sw-ui/src/main/kotlin/com
diff options
context:
space:
mode:
Diffstat (limited to 'sw-ui/src/main/kotlin/com')
-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