-
🎨 refactor(EditTagModal): tidy imports & enhance state-sync on open · f45caf29Motivation • Remove unused UI components to keep the bundle lean and silence linter warnings. • Ensure every time the side-sheet opens it reflects the latest tag data, avoiding stale form values (e.g., model / group mismatches). Key Changes 1. UI Imports – Dropped `Input`, `Select`, `TextArea` from `@douyinfe/semi-ui` (unused in Form-based version). 2. State Reset & Form Sync – On `visible` or `tag` change: • Refresh model & group options. • Reset `inputs` to clean defaults (`originInputs`) carrying the current `tag`. • Pre-fill Form through `formApiRef` to keep controlled fields aligned. 3. Minor Cleanup – Added inline comment clarifying local state reset purpose. Result Opening the “Edit Tag” side-sheet now always displays accurate data without residual selections, and build output is cleaner due to removed dead imports.t0ng7u committed
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| EditChannel.js | Loading commit data... | |
| EditTagModal.js | Loading commit data... | |
| index.js | Loading commit data... |