Repository navigation
Preserve the current repeater draft when adding an item - #383
Merged
Merged
Conversation
This was referenced Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #319.
Reproduction
On the published 3.2.5 package with PrestaShop 9.1.4, select a FAQ question, type a new value without saving, then add another item. The current editing panel disappears and the draft is lost.
Fix
Do not call the selection-changing callback with an incomplete item ID before creating a repeater item. The existing ordinary refresh already preserves the active selection and form state. This keeps the draft in memory until the user's explicit Save, as permitted by the issue's expected behavior, without introducing automatic saves or a new draft system.
This is scoped to adding items; it does not change the usual behavior of leaving an unsaved form by navigation.
Thanks to @Daaaaad for the report.
Validation
984cec95ad4cfac6189bc4ef20cd807028da4c499a5567408f6d619bd5e87646.No backend/schema changes, version bump, merge or release.