leezng / vue-json-pretty

A JSON tree view component that is easy to use and also supports data selection.

Home Page:https://leezng.github.io/vue-json-pretty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selector is not working when using Vue 2

JoshuaeKaiser opened this issue · comments

Hi,

tried using the selectior functionality in vue 2

I have tried specifying the selectedValue prop as it says in the docs and have all the appropriate flags set. When I click a selector radio button nothing happens it fails to highlight and I fail to get an event on the @selectedChange handler.

Any help greatly appreciated.

Screenshot 2023-03-13 at 16 15 26

Screenshot 2023-03-13 at 16 15 41

commented

In Vue2 you must use sync-Modifier:

:selected-value.sync="selectedValue"