Repository navigation
fix(save-panel): uncheck disabled remove taxonomy query option. - #902
Open
KarunyaChavan wants to merge 1 commit into
Open
KarunyaChavan wants to merge 1 commit into
KarunyaChavan wants to merge 1 commit into
Conversation
- Ensure the 'Remove Taxonomy Query' checkbox visually unchecks when both 'Save Template Changes' and 'Save Patterns' are disabled, matching the behavior of its peer dependent controls. - Also extract the repeated template/pattern predicate to keep the condition DRY.
KarunyaChavan
marked this pull request as ready for review
November 6, 2026 08:19
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.
When the "Remove Taxonomy Query" option was introduced, the
disabledguard was added to prevent user interaction when neither templates nor patterns were selected to save, but the matching guard on thecheckedprop was overlooked. As a result, the control retainedchecked={ preference.removeTaxQuery }without taking parent state into account, leaving it visibly checked when disabled, unlike its sibling controls which mask their visual checked state when inactive.Fixes #901
What Changed?
checkedattribute of the "Remove Taxonomy Query" checkbox so that it unchecks when both "Save Template Changes" and "Save Patterns" are disabled.canSaveTemplatesOrPatterns(DRY): Replaced repeated! preference.saveTemplates && ! preference.savePatternsand( preference.saveTemplates || preference.savePatterns )expressions across all four dependent controls with a single, shared boolean constant.disabledandcheckedlogic across "Localize Text", "Localize Images", "Remove Navigation Refs", and "Remove Taxonomy Query", preventing future state synchronization discrepancies.Steps for Testing