patternfly / react-topology

MIT License
10 stars 19 forks source link

GRAPH_POSITION_CHANGE_EVENT is fired before setting is complete #77

Closed jeff-phillips-18 closed 1 year ago

jeff-phillips-18 commented 1 year ago

Describe the problem The GRAPH_POSITION_CHANGE_EVENT get fired on a scaleExtent, graph position, and a scale change. Handlers expecting to be able to capture the updated value get the old value as it has not been updated yet.

How do you reproduce the problem? Add event handler for GRAPH_POSITION_CHANGE_EVENTs. In the handler check the value and notice it is the old value and not the updated value.

Expected behavior The updated value is retrieved.

/cc @bartoval

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 5.0.0-prerelease.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: