Search clears, preset list reopens when adding a provider in cc-switch
Quick fix
Upgrade to cc-switch 4.0; search for and select a preset before opening the form.
Symptom
Section titled “Symptom”搜索框收起、搜索词被清空
- 所有供应商预设重新全部显示The search box collapses and the search term is cleared - All provider presets are displayed again.
In cc-switch 3.20.4, the add-provider page placed the preset search box at the top of the form, with fields such as API Key below it. A global `mousedown` listener treated clicks outside the selector container as outside clicks. So clicking a form field closed the search and cleared the search term. The preset list then expanded again, changing its height and making the interface jump.
The maintainer said that version 4.0 redesigned the add-provider page: search for and select a preset in the panel first, then fill in the form. This prevents clicks on fields such as API Key from clearing the search or reopening the preset list.
Upgrade to cc-switch 4.0. The maintainer said the add-provider flow has been redesigned in the new version; get it from the official Releases page.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
(No FAQ yet)
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.