You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading dash-cytoscape from 0.3.0 to 1.0.0, when trying to update the ["data"]["label"] of a node which is connected by an edge in a callback, the label stays unchanged unless we mannually remove and re-add the node from the elements of the Cytoscape component via two separate callbacks.
But if the node is not connected by an edge, it works as expected, which is pretty wierd.
The label of node with id="1" should be an integer that increases with the number of clicks of the button increases.
Actual Results
In version 0.3.0, it works as expected. But in version 1.0.0, the label of node with id="1" is freezed to be "None".
If we remove the edge connecting nodes with id="1" and id="2", it works again.
Versions
The bugged version:
Dash 2.16.1
Dash Cytoscape 1.0.0
The working version (running pip list shows dash-cytoscape 0.3.0, but dash_cytoscape.__version__ shows 0.2.0):
Dash 2.16.1
Dash Cytoscape 0.2.0
The text was updated successfully, but these errors were encountered:
FredBill1
changed the title
[BUG] node label cannot be updated when connected to another node, after upgrading dash-cytoscape from 0.3.0 to 1.0.0
[BUG] node label cannot be updated when connected to an edge, after upgrading dash-cytoscape from 0.3.0 to 1.0.0Apr 10, 2024
Description
After upgrading
dash-cytoscape
from0.3.0
to1.0.0
, when trying to update the["data"]["label"]
of a node which is connected by an edge in a callback, the label stays unchanged unless we mannually remove and re-add the node from theelements
of theCytoscape
component via two separate callbacks.But if the node is not connected by an edge, it works as expected, which is pretty wierd.
Steps/Code to Reproduce
Expected Results
The label of node with
id="1"
should be an integer that increases with the number of clicks of the button increases.Actual Results
In version
0.3.0
, it works as expected. But in version1.0.0
, the label of node withid="1"
is freezed to be"None"
.If we remove the edge connecting nodes with
id="1"
andid="2"
, it works again.Versions
pip list
showsdash-cytoscape 0.3.0
, butdash_cytoscape.__version__
shows0.2.0
):The text was updated successfully, but these errors were encountered: