I want to clear all the form values if the user closes the browser but there is no option to clear since it's using local storage. How Can I switch to session storage behavior? In sort, data should persist if the user reloads and data should clear if the user closes the browser.
I want to clear all the form values if the user closes the browser but there is no option to clear since it's using local storage. How Can I switch to session storage behavior? In sort, data should persist if the user reloads and data should clear if the user closes the browser.