Repository navigation
Fix selector placeholders and allow clearing a selection - #389
Merged
PercolatingStudio merged 1 commit intoNov 19, 2026
Merged
Conversation
PercolatingStudio
deleted the
codex/issue-264-selector-default-and-clear
branch
November 19, 2026 12:41
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 #264.
Reproduction on main
On PrestaShop 8.2.7 / PHP 8.1 and PrestaShop 9.1.4 / PHP 8.5, register a PrettyBlocks block with a
selector(collectionCategory). Opening its settings with'default' => 'Choose'raises a PHP TypeError. With no default, reading the missing selection offsets raises a warning. A valid selection can be saved, but the picker offers no way to clear it.Fix
false; the marker is not exposed viasettings_formattedor the theme-settings value.Verification
0ef4672c37b714ac87591e832d4068ef5f3528f513aa2ac10512f5dda6db0c3a. Verifiedprettyblocks/, the Vite manifest and its assets.Chooseand no-default fields open, save, and reopen; select Art, save, clear it, reload, and select it again; repeat in one repeater row while preserving both row keys, the sibling selection, and adjacent text fields.