Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

removeNode with silent: true still fires treeview rendered event #102

Open
keithabramo opened this issue May 7, 2019 · 1 comment
Open

Comments

@keithabramo
Copy link

When calling removeNode with the silent: true modifier set, the method still triggers the treeview rendered event.

Steps to reproduce:

  1. make a call like .treeview("removeNode", [nodesToRemove, { silent: true }]);
  2. Observe treeview's "rendered" event is called again if nodes were removed.
@mwr9uk
Copy link

mwr9uk commented Jan 30, 2020

This has been a problem for me too, since calling removeNode with a null seems to be the only workaround for refreshing the treeview with updated data.

Whilst the function takes an options structure, it doesn't do anything with it. This is not used in the function:
`options = $.extend({}, _default.options, options);

I believe it should be passed to _setInitialStates, because within that function, the default options are used to determine whether events are fired.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants