From 63f00930d5963d725526e9b33e5bdc311c8da88d Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Thu, 11 Feb 2021 01:22:40 +0100 Subject: Fix text inputs --- sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw-ui') 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 } } -- cgit