diff --git a/guides/6.EVENTS.md b/guides/6.EVENTS.md index 3fed95ea..cd370a51 100644 --- a/guides/6.EVENTS.md +++ b/guides/6.EVENTS.md @@ -71,13 +71,13 @@ The other Terra Draw events are: ```typescript draw.on("finish", (id: string, context: { action: string, mode: string }) => { - if (action === 'draw') { + if (context.action === 'draw') { // Do something for draw finish event - } else if (action === 'dragFeature') { + } else if (context.action === 'dragFeature') { // Do something for a drag finish event - } else if (action === 'dragCoordinate') { + } else if (context.action === 'dragCoordinate') { // - }else if (action === 'dragCoordinateResize') { + }else if (context.action === 'dragCoordinateResize') { // } }); @@ -114,4 +114,4 @@ draw.on("deselect", () => { 5. [x] [Styling](./5.STYLING.md) 6. [x] Events 7. [ ] [Development](./7.DEVELOPMENT.md) -8. [ ] [Examples](./7.EXAMPLES.md) \ No newline at end of file +8. [ ] [Examples](./7.EXAMPLES.md)