These are chat archives for ThoughtWorksInc/Binding.scala

3rd
Nov 2016
Milad Khajavi
@khajavi
Nov 03 2016 16:18
Thank you @Atry
I've another problem, I don't know whether it's related to scalatags or Binding.scala:
When I write simple binding for input, input tag loose focus when I type in it.
here is my code:
  @dom
  def myview: Binding[Div] = {
    val data: Var[String] = Var("Hello, World!")
    div(
      h1(data.bind),
      input(data.bind,
        onkeyup := { e: Event =>
          data := e.srcElement.asInstanceOf[Input].value
        }
      )
    ).render
  }
rakajack
@rakajack
Nov 03 2016 21:55
Is it possible to render Binding to a String on JVM (for server side rendering)?