vanshaj2023 opened a new issue, #3344:
URL: https://github.com/apache/apisix-dashboard/issues/3344

   ### Issue description
   
   On detail/edit pages (Upstreams, Routes, Services, etc.), clicking 
**Cancel** silently discards all unsaved form changes with no warning. Users 
can lose edits without realizing it.
   
   **Root cause**
   The Cancel button calls `setReadOnly(true)` directly with no unsaved changes 
check:
   
   ```ts
   <Button variant="outline" onClick={() => setReadOnly(true)}>
     {t('form.btn.cancel')}
   </Button>
   ```
   
   ### Expected behavior
   
   A confirmation dialog should appear when the user has unsaved changes, 
consistent with the plugin editor drawer which was fixed in #3333 .
   
   ### How to Reproduce
   
   1. Go to Upstreams → open any upstream → click **Edit**
   2. Make changes to any field
   3. Click **Cancel**
   4. All changes are silently discarded, no confirmation dialog
   
   ### Screenshots
   
   _No response_
   
   ### Environment
   
   apisix-dashboard: master
   
   ### Additional context
   
   ## Affected pages
   
   1. Upstreams (`upstreams/detail.$id.tsx`)
   2. Routes (`routes/detail.$id.tsx`)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to