Remove debug logs

This commit is contained in:
Alexander Nozik 2020-04-19 22:36:02 +03:00
parent e0346b7db5
commit 63f2713875
2 changed files with 1 additions and 6 deletions

View File

@ -137,12 +137,9 @@ private fun RBuilder.configEditorItem(props: ConfigEditorProps) {
} }
} }
div("col") { div("col") {
console.log("1: Setting ${props.name} to ${actualItem.value}")
val value = actualItem.value
child(ValueChooser) { child(ValueChooser) {
attrs { attrs {
console.log("2: Setting ${props.name} to $value") this.value = actualItem.value
this.value = value
this.descriptor = descriptorItem as? ValueDescriptor this.descriptor = descriptorItem as? ValueDescriptor
this.valueChanged = valueChanged this.valueChanged = valueChanged
} }

View File

@ -27,8 +27,6 @@ val ValueChooser = functionalComponent<ValueChooserProps> { props ->
// var state by initState {props.value } // var state by initState {props.value }
val descriptor = props.descriptor val descriptor = props.descriptor
console.log("3: Set ${props.value}")
val onValueChange: (Event) -> Unit = { val onValueChange: (Event) -> Unit = {
val res = when (val t = it.target) { val res = when (val t = it.target) {
// (it.target as HTMLInputElement).value // (it.target as HTMLInputElement).value