diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-11 01:22:40 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-11 01:22:40 +0100 |
commit | 63f00930d5963d725526e9b33e5bdc311c8da88d (patch) | |
tree | f7975422e00373559680c5abae41e608a7843729 /sw-ui/src/main/kotlin | |
parent | Fix some browser navigation paths (diff) | |
download | seven-wonders-63f00930d5963d725526e9b33e5bdc311c8da88d.tar.gz seven-wonders-63f00930d5963d725526e9b33e5bdc311c8da88d.tar.bz2 seven-wonders-63f00930d5963d725526e9b33e5bdc311c8da88d.zip |
Fix text inputs
Diffstat (limited to 'sw-ui/src/main/kotlin')
-rw-r--r-- | sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt | 4 |
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 } } |