Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property names ignored on async load children #90

Open
eduha opened this issue Dec 19, 2018 · 1 comment
Open

Property names ignored on async load children #90

eduha opened this issue Dec 19, 2018 · 1 comment

Comments

@eduha
Copy link

eduha commented Dec 19, 2018

Subj.

Here is code example:

treeOptions = {
  propertyNames: {
    text: 'name',
  },
  fetchData: node => {
    return new Promise((resolve, reject) => {
      resolve({
        id: 1,
        name: 'test',
        isBatch: true,
      });
    })
  }
}

Root node have label "test" - as expected. But when root node expanded and promise run again to show subtree, label is lost. If I remove propertyNames and keep property-name as text, all works.

@amsik
Copy link
Owner

amsik commented Dec 19, 2018

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants