Skip to content

Commit

Permalink
fix(vtreeview): a node no longer sets indeterminate state based on pa…
Browse files Browse the repository at this point in the history
…rent, only by it's children

A Treeview node no longer sets it's indeterminate state based on it's parent. The indeterminate
state is only set by the default state, the node's previous state, or by the states of the node's
children.

fix vuetifyjs#8256
  • Loading branch information
skycow committed Dec 20, 2019
1 parent 30632ab commit 0c0f970
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/vuetify/src/components/VTreeview/VTreeview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ export default mixins(
// This fixed bug with dynamic children resetting selected parent state
if (!this.nodes.hasOwnProperty(key) && parent !== null && this.nodes.hasOwnProperty(parent)) {
node.isSelected = this.nodes[parent].isSelected
node.isIndeterminate = this.nodes[parent].isIndeterminate
} else {
node.isSelected = oldNode.isSelected
node.isIndeterminate = oldNode.isIndeterminate
Expand Down

0 comments on commit 0c0f970

Please sign in to comment.