[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. 馃珫 Status page with uptime monitoring & API monitoring as code 馃珫 openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor

fix: reset delete confirmation input when dialog closes (#2529) master

The delete confirmation dialog was retaining the previous input value when opened again for a different item. Users would see the old value pre-filled in the confirmation input field. Root cause: The 'value' state was updated when typing but never reset when the dialog closed, causing it to persist across multiple uses. Fix: Added handleOpenChange handler that resets the input value to an empty string whenever the dialog state changes (opens or closes). This ensures each delete action starts with a clean input field.


+7 -1
1 changed file