Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Sep 27, 2024
1 parent 5eedf6b commit dd18dd9
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions frontend/src/main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,12 @@ case class JobAttributes(
input(
tpe := "text",
cls := "p-2 border-2 border-grey-600 rounded-md",
value <-- populationSize.signal.map(_.toString),
onInput.mapToValue --> populationSize.writer
.filter(_ > 0)
.contramap[String](_.toInt)
controlled(
value <-- populationSize.signal.map(_.toString),
onInput.mapToValue --> populationSize.writer
.filter(_ > 0)
.contramap[String](_.toInt)
)
)
),
p(
Expand All @@ -168,10 +170,12 @@ case class JobAttributes(
tpe := "text",
placeholder := "8008",
cls := "p-2 border-2 border-grey-600 rounded-md",
value <-- seed.signal.map(_.toString),
onInput.mapToValue --> seed.writer
.filter(_ > 0)
.contramap[String](_.toLong)
controlled(
value <-- seed.signal.map(_.toString),
onInput.mapToValue --> seed.writer
.filter(_ > 0)
.contramap[String](_.toLong)
)
)
),
div(
Expand Down

0 comments on commit dd18dd9

Please sign in to comment.