Skip to content

Commit

Permalink
closes #29
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed Mar 23, 2024
1 parent 7f657d4 commit 5596d21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# jsTreeR 2.6.0 (2024-02-15)
# jsTreeR 2.6.0 (2024-03-24)

- The `jstree` function has a new argument `coreOptions`, allowing to pass a
list of jsTree core options. For advanced usage.

- There was a JavaScript error occuring in Shiny apps when the browser window
- There was a JavaScript error occurring in Shiny apps when the browser window
was resized while using a jsTree grid in the app. It has been fixed.


Expand Down
4 changes: 2 additions & 2 deletions inst/htmlwidgets/jstreer.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ HTMLWidgets.widget({
Shiny.setInputValue("jsTreeMoved:jsTreeR.copied", {
from: { instance: oldInstanceId, path: oldPath },
to: { instance: newInstanceId, path: newPath }
});
}, {priority: "event"});
if(data.is_multi) { // ??
setShinyValue(oldInstance, checkboxes);
setShinyValue(newInstance, checkboxes);
Expand Down Expand Up @@ -454,7 +454,7 @@ HTMLWidgets.widget({
Shiny.setInputValue("jsTreeDeleted:jsTreeR.path", {
instance: instance.element.attr("id"),
path: instance.get_path(data.node)
});
}, {priority: "event"});
setShinyValue(instance, checkboxes);
}
});
Expand Down

0 comments on commit 5596d21

Please sign in to comment.