Skip to content

Commit

Permalink
Commenting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchilvers committed Apr 1, 2024
1 parent 18b9fb6 commit 766c8d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/invent/ui/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,9 @@ def clone(self):
Make a clone of the component.
"""
from invent.ui import create_component

# Set the id here otherwise we don't update the Component by Id map!
# This assumes you want a destructive clone as part of a move!
clone = create_component(type(self).__name__, id=self.id)

for property_name, property_obj in type(self).properties().items():
Expand Down

0 comments on commit 766c8d7

Please sign in to comment.