mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-04 08:25:26 +03:00
71cef6f55a
Fix Host form state leaking across Add/Edit modal sessions by creating a fresh form session for each opening and ignoring stale asynchronous completions after a session closes. Improve the Address field with per-tag copy, multi-address paste, and accessible inline editing with validation, ordered replacement, Escape cancellation, and focus restoration. Preserve existing address formats, tag removal, schema validation, and host-port rewriting. Guard keyboard event propagation from Edit/Copy controls to prevent Backspace from unintentionally removing a tag. Add regression coverage for form lifecycle, async races, clipboard interactions, inline editing, validation, focus, and keyboard behavior. Verified by GitHub Actions CI on the reviewed head: 12/12 jobs successful.