`$: nodes = traverse(nodes);` is unexpectedly mutating the original `nodes` reference used to render `TreeView`.
As a result, a tail leaf node is appended to the top-level list.
Flattening is necessary to obtain a reference to all node IDs (to programmatically show/hide nodes). This fix creates a new reference `flattenedNodes` instead of overriding the original `nodes`.
* chore: update ignore rules, remove unused files
* refactor(icons): use icons from carbon-icons-svelte@11
* docs(time-picker): fix default value
* chore: upgrade carbon-icons-svelte to v11
* docs: update examples to use icons from carbon-icons-svelte@11
* docs: update number of icons [ci skip]
* feat(icons): inline carbon icons used by components
* feat(icons): update svelte components to use inlined carbon icons
* breaking(deps): remove carbon-icons-svelte
* chore(deps-dev): install carbon-icons-svelte as a devDependency
* feat(types): loosen type for Carbon icons #806
* Add closeIcon option and remove stopPropagation on:click in HeaderAction (#840)
* Remove stopPropagation on:click
Remove stopPropagation on:click helps when you have more then one acction to switch between actions tabs
* fix bug for default icon
* add closeIcon attribute to HeaderAction
* feat(types): loosen type for Carbon icons #806
* chore: update TreeView, HeaderAction icon types
Co-authored-by: Daniel Miedzik <daniel.miedzik@gmail.com>
* fix(data-table): type DataTableRowId as "any" #530Fixes#530
* fix(tree-view): make first node focusable if activeId does not match selected
* fix(overflow-menu): set type="button" to prevent default submit behavior #554Fixes#554
* fix(overflow-menu): update semantic attributes in OverflowMenuItem
* fix(number-input): do not dispatch change event on initialization #561Fixes#561
* fix(tree-view): make first focusable node tabbable regardless of active/selected states
* fix(date-picker): load rangePlugin dynamically
* build(rollup): enable inlineDynamicImports
* build(rollup): remove "clipboard-copy" global
* fix(overflow-menu): do not render title if using a slot #537Fixes#537
* fix(select): forward missing focus, input events #501Fixes#501