Skip to content

Commit

Permalink
Merge 09269e3 into d223036
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonicclay committed Apr 17, 2020
2 parents d223036 + 09269e3 commit 6f62e1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/layers/src/layers/editable-geojson-layer.ts
Expand Up @@ -333,6 +333,10 @@ export default class EditableGeoJsonLayer extends EditableLayer {
lastPointerMoveEvent: this.state.lastPointerMoveEvent,
cursor: this.state.cursor,
onEdit: (editAction: EditAction<FeatureCollection>) => {
// call empty setState in order to trigger a re-render
// This supports double-click where we need to ensure that there's a re-render between the two clicks
// even though the data wasn't changed, just the internal tentative feature.
this.setState({});
props.onEdit(editAction);
},
onUpdateCursor: (cursor: string | null | undefined) => {
Expand Down

0 comments on commit 6f62e1b

Please sign in to comment.