Summary
When editing a link (either on a shape via the Edit Link dialog or in rich text), clicking outside the dialog/input should save the current link value and close, rather than canceling and discarding changes.
Current behavior
- Select a shape with a URL property (e.g., geo shape)
- Open the "Edit link" dialog
- Enter or modify a URL
- Click on the canvas background (outside the dialog)
- Result: The dialog closes and changes are discarded
The same behavior occurs for the rich text link editor - clicking outside cancels instead of saving.
Expected behavior
Clicking outside the dialog should be treated as "accept and continue" - the current link value should be saved before closing. This matches common UI patterns where clicking away from an input field typically confirms the change rather than canceling it.
Use case
Users often click away from dialogs/inputs as a natural way to "finish" editing, expecting their changes to be saved. Having to explicitly click "Save" or press Enter is less intuitive, and accidentally clicking outside results in lost work.
Summary
When editing a link (either on a shape via the Edit Link dialog or in rich text), clicking outside the dialog/input should save the current link value and close, rather than canceling and discarding changes.
Current behavior
The same behavior occurs for the rich text link editor - clicking outside cancels instead of saving.
Expected behavior
Clicking outside the dialog should be treated as "accept and continue" - the current link value should be saved before closing. This matches common UI patterns where clicking away from an input field typically confirms the change rather than canceling it.
Use case
Users often click away from dialogs/inputs as a natural way to "finish" editing, expecting their changes to be saved. Having to explicitly click "Save" or press Enter is less intuitive, and accidentally clicking outside results in lost work.