Skip to content

Commit 0438f63

Browse files
[poly-gets-updated-coords] docs(changeset): Bugfix to ensure that the Interactive Graph Editor updates the Polygon start coords if the number of sides change. (#2283)
## Summary: This PR is part of the Interactive Graph project. The purpose of this simple PR is to implement a fix that ensures that the start coords are always updated when content creators update the number of sides for the graph. Issue: LEMS-2883 ## Test plan: - manual testing Author: SonicScrewdriver Reviewers: nishasy Required Reviewers: Approved By: nishasy Checks: ✅ 8 checks were successful, ⏹️ 5 checks were cancelled Pull Request URL: #2283
1 parent 88e4e90 commit 0438f63

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/cuddly-snails-work.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@khanacademy/perseus": patch
3+
---
4+
5+
Bugfix to ensure that the Interactive Graph Editor updates the Polygon start coords if the number of sides change.

packages/perseus-editor/src/widgets/interactive-graph-editor/interactive-graph-editor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ class InteractiveGraphEditor extends React.Component<Props> {
510510
numSides:
511511
parsePointCount(newValue),
512512
coords: null,
513+
startCoords: undefined,
513514
// reset the snap for UNLIMITED, which
514515
// only supports "grid"
515516
// From: D6578

0 commit comments

Comments
 (0)