diff --git a/dataforge-vis-common/src/jsMain/kotlin/hep/dataforge/vis/editor/ConfigEditorComponent.kt b/dataforge-vis-common/src/jsMain/kotlin/hep/dataforge/vis/editor/ConfigEditorComponent.kt index a360eca3..42c57a26 100644 --- a/dataforge-vis-common/src/jsMain/kotlin/hep/dataforge/vis/editor/ConfigEditorComponent.kt +++ b/dataforge-vis-common/src/jsMain/kotlin/hep/dataforge/vis/editor/ConfigEditorComponent.kt @@ -137,12 +137,9 @@ private fun RBuilder.configEditorItem(props: ConfigEditorProps) { } } div("col") { - console.log("1: Setting ${props.name} to ${actualItem.value}") - val value = actualItem.value child(ValueChooser) { attrs { - console.log("2: Setting ${props.name} to $value") - this.value = value + this.value = actualItem.value this.descriptor = descriptorItem as? ValueDescriptor this.valueChanged = valueChanged } diff --git a/dataforge-vis-common/src/jsMain/kotlin/hep/dataforge/vis/editor/ValueChooser.kt b/dataforge-vis-common/src/jsMain/kotlin/hep/dataforge/vis/editor/ValueChooser.kt index 71323338..a74da773 100644 --- a/dataforge-vis-common/src/jsMain/kotlin/hep/dataforge/vis/editor/ValueChooser.kt +++ b/dataforge-vis-common/src/jsMain/kotlin/hep/dataforge/vis/editor/ValueChooser.kt @@ -27,8 +27,6 @@ val ValueChooser = functionalComponent { props -> // var state by initState {props.value } val descriptor = props.descriptor - console.log("3: Set ${props.value}") - val onValueChange: (Event) -> Unit = { val res = when (val t = it.target) { // (it.target as HTMLInputElement).value