Skip to content

Commit

Permalink
For #5049: fix for tree select1
Browse files Browse the repository at this point in the history
  • Loading branch information
avernet authored and ebruchez committed Dec 31, 2024
1 parent 1d4361b commit 9ba8fd0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ object TreeSelect1 {

val onActivate: js.Function2[js.Any, JQueryEvent, Unit] = (_ :js.Any, event: JQueryEvent) => {
if (! this.isReadonly) {
val data: FancytreeEventData = event.data.asInstanceOf[FancytreeEventData] // TODO: does this work?
val newValue = data.node.key ensuring (_ ne null)
val newValue = event.asInstanceOf[FancytreeEventData].node.key ensuring (_ ne null)

if (this.currentValue != newValue) {
this.currentValue = newValue
Expand Down

0 comments on commit 9ba8fd0

Please sign in to comment.