Find nodes in "data" property not worked (return null)
See original GitHub issueHello! Sorry for my English… I need to find the nodes something like this:
var currPath = this.$router.history.current.path;
var nodes = this.$refs.treeMenuRef.find({
data: { path: currPath }
})
But this code returns NULL Please tell me how to correctly find the data in the nested properties of the “data” field?
P.S.
I use your control as the main menu of the SPA application and when I open the link, I need to make active (and open the parent node, if it is a child) of the desired node.
Do you have any plans to add <router-link>
support?
UPDATE (example) https://codesandbox.io/embed/vue-template-plhic?fontsize=14
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
JavaScript recursion find node return null - Stack Overflow
Explanation: Your for loop keeps looping even after a match is found, so result will be overridden by null if the other elements...
Read more >Understanding non-existent properties and working with nulls
While you can perform a MATCH where a node variable in the match is null (such as from a failed OPTIONAL MATCH), you...
Read more >findNodeForKey returning null for copied node - GoJS
Hi, I'm having the following issue: I copy a diagram node (using localstorage as clipboard) and I paste it on the same diagram....
Read more >Object.prototype.hasOwnProperty() - JavaScript | MDN
The method returns false if the property is inherited, or has not been declared at all. Unlike the in operator, this method does...
Read more >HTML DOM Element nodeValue Property - W3Schools
If the node is an element node, the nodeValue property will return null. Note: If you want to return the text of an...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Привет. Можем на русском 😃
Вы вызываете слишком рано метод поиска. Т.е. app замаунтился, но дерево еще нет. Попробуйте так:
Ясно 😃 Еще раз спасибо.