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
A connection can be highlighted multiple times, and there's no way to unhighlight it multiple times, as only the last reference is saved. This problem is exacerbated by the fact that there is no API to tell if a connection is already highlighted, as highlightPath is a private property.
Suggestion:
in highlight, if highlightPath already exists, then silently return early because it's already highlighted.
provide a isHighlighted method that returns true if highlightPath exists.
only one of the two is required, but both could be useful.
Describe the bug
A connection can be highlighted multiple times, and there's no way to unhighlight it multiple times, as only the last reference is saved. This problem is exacerbated by the fact that there is no API to tell if a connection is already highlighted, as
highlightPath
is a private property.Suggestion:
highlight
, ifhighlightPath
already exists, then silently return early because it's already highlighted.isHighlighted
method that returns true ifhighlightPath
exists.only one of the two is required, but both could be useful.
To Reproduce
connection is still highlighted.
Expected behavior
Connection is not highlighted multiple times.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Stack Traces
Additional context
https://groups.google.com/g/blockly/c/lYbTqXR2yq4
The text was updated successfully, but these errors were encountered: