In FilterCombobox, submenu option rows are marked selected with an exact-case selectedTokens.includes(token). An applied template:Foo therefore leaves the foo row unchecked, and clicking the row rewrites the chip instead of removing it. This predates the filter redesign stack. #29872 handles the Owner scope case only (a single Owner chip, or one under each key).
Found by the Coder Agents review on #29872 and left out of scope there.
Generated by Coder Agents
In
FilterCombobox, submenu option rows are marked selected with an exact-caseselectedTokens.includes(token). An appliedtemplate:Footherefore leaves thefoorow unchecked, and clicking the row rewrites the chip instead of removing it. This predates the filter redesign stack. #29872 handles the Owner scope case only (a single Owner chip, or one under each key).Found by the Coder Agents review on #29872 and left out of scope there.