File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 33 "description" : " Yet another Vue treeview component." ,
44 "author" : " Gregg Rapoza <grapoza@gmail.com>" ,
55 "license" : " MIT" ,
6- "version" : " 1.3.4 " ,
6+ "version" : " 1.3.5 " ,
77 "browser" : " index.js" ,
88 "repository" : {
99 "url" : " https://github.com/grapoza/vue-tree" ,
Original file line number Diff line number Diff line change 121121 return this .selectionMode === null ? false : (this .selectionMode === ' multiple' ).toString ();
122122 }
123123 },
124- created () {
125- this .$_treeView_enforceSingleSelectionMode ();
126- },
127124 mounted () {
125+ this .$_treeView_enforceSingleSelectionMode ();
128126 this .$set (this , ' uniqueId' , this .$el .id ? this .$el .id : null );
129127 },
130128 methods: {
211209 if (this .selectionMode === ' single' ) {
212210 let alreadyFoundSelected = false ;
213211 this .$_treeView_depthFirstTraverse ((node ) => {
214- if (node .state .selected === true ) {
212+ if (node .state && node . state .selected === true ) {
215213 if (alreadyFoundSelected) {
216214 node .state .selected = false ;
217215 }
You can’t perform that action at this time.
0 commit comments