Skip to content

rx-html: Remove added DOM attributes at cancel #3024

@xerial

Description

@xerial
var selected = Rx.variable("Home")

selected.map { current =>
  Seq("Home", "Edit", ..).map { x =>
    div(
     (cls += "active").when(x == current)
      x
    )
  )
}

The active style will not be removed properly even when the selected value is updated.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions