Wrong label when using id field
See original GitHub issueIssue type
Despite using label: 'data(id)'
, nodes can have duplicate (wrong) labels while still having the correct id.
Bug report
Environment info
- Cytoscape.js version : 3.14.0
- Browser/Node.js & version : Chrome 80.0.3987.106
Current (buggy) behaviour
The bug causes duplicates of one label on different nodes while using the ID as the label.
Desired behaviour
Since Ids have to be unique (and it is, infact, unique), a duplicate label should be impossible when using the data(id)
selector.
Minimum steps to reproduce
Here is a simple reproduction of the bug using the given template. There are no complex things involved, just some nodes and the style.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
How to correct the wrong label ID appearance in address and ...
The data for the address and contact information purposes is inserted during the setup. At that time, the label IDs will be attempted...
Read more >Radio with WRONG LABEL ID
I want taht every radio group has different id in their label, so the user can click directly on the label, BUT CAKE...
Read more >Trello Label ID Error - Power Platform Community - Microsoft
I have narrowed down the cause to the Label-ID field I have tried everything in this field putting text, 1 but it comes...
Read more >Common validation errors when creating issue forms
You may see some of these common validation errors when creating, saving, or viewing issue forms.
Read more >Accessibility:; Form Label error even with a corresponding id ...
While I would argue that visible labels increase usability for all users, if the design insists upon no visible labels, there are two...
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 FreeTop 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
Top GitHub Comments
Related: Possible cache issue, how to diagnose? #2562
@josejulio
@ng1905 See the hash-label-2636 branch and commit 0e01d53. That may address this particular case, but I’d like to see more data.
The explanation from the commit follows: