josdejong / josdejong/jsoneditor

jsoneditor in vue lose focus

Open
#1,169 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
12.3k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

Using jsoneditor in vue, encapsulating jsoneditor as a child component, it needs to be used in the parent component, changeText is configured in the options, and the value is passed to the parent component through '$emit' when triggered to achieve two-way data binding. One problem is , when $emit is used, when editing json data, every time a character is entered, the cursor will lose focus
here is my code
![image](https://user-images.githubusercontent.com/28032470/99867085-6cf46200-2bf1-11eb-9fbf-9d0745598b7c.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.