diff --git a/web/package/agama-web-ui.changes b/web/package/agama-web-ui.changes index 736d6c16a8..b5397eab2f 100644 --- a/web/package/agama-web-ui.changes +++ b/web/package/agama-web-ui.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 26 13:45:36 UTC 2024 - David Diaz + +- Reset installer options to its initial values before closing + the dialog on cancel (gh#openSUSE/agama#1386). + ------------------------------------------------------------------- Wed Jun 26 13:38:32 UTC 2024 - David Diaz diff --git a/web/src/components/core/InstallerOptions.jsx b/web/src/components/core/InstallerOptions.jsx index 3802164f15..ba241b968d 100644 --- a/web/src/components/core/InstallerOptions.jsx +++ b/web/src/components/core/InstallerOptions.jsx @@ -59,7 +59,11 @@ export default function InstallerOptions() { if (["/login", "/products/progress"].includes(location.pathname)) return; const open = () => setIsOpen(true); - const close = () => setIsOpen(false); + const close = () => { + setLanguage(initialLanguage); + setKeymap(initialKeymap); + setIsOpen(false); + }; const onSubmit = async (e) => { e.preventDefault();