Commit 73253cf
committed
fix: prevent mode name from disappearing when editing other fields
- Fix mode name input field to check currentEditingField === "modeName" instead of just currentEditingModeSlug
- Add currentEditingField: "modeName" to onFocus handler to properly track field editing state
- This prevents the mode name from showing empty local state when other fields are being edited
Fixes the issue where mode name would disappear when editing description, role definition, or other fields in custom modes.1 parent 211d18a commit 73253cf
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
783 | | - | |
| 783 | + | |
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
| 794 | + | |
794 | 795 | | |
795 | 796 | | |
796 | 797 | | |
| |||
0 commit comments