Skip to content

[Bug] undo-redo-control code blocks event listeners on overlays #602

Open
@a-j-bailey

Description

@a-j-bailey

Description

When using the code in the undo-redo-control.tsx file of the Drawing example, event listeners attached to new polygons don't fire.

Steps to Reproduce

  • Add an event listener to the overlaycompleted event on the drawingManager
  • When that even fires, add listeners to the insert_at, remove_at, set_at events.
  • These event listeners don't fire...
  • Removing the undo-redo-control.tsx code allows them to fire just fine.

Environment

  • Library version:
  • Google maps version: weekly
  • Browser and Version:
  • OS:

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions