From ee5558e6eecdf13e002885339a45ca9334f09c9f Mon Sep 17 00:00:00 2001 From: Tony Air Date: Wed, 22 Nov 2023 04:08:58 +0200 Subject: [PATCH] FIX: form wrapper loaded class --- package.json | 2 +- src/js/ajax/form.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 300fd0f..e516b38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate-react", - "version": "5.1.9", + "version": "5.2.0", "description": "This UI Kit allows you to build Bootstrap 5 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.", "author": "Tony Air ", "license": "BSD-2-Clause", diff --git a/src/js/ajax/form.js b/src/js/ajax/form.js index bef1955..cb3919f 100644 --- a/src/js/ajax/form.js +++ b/src/js/ajax/form.js @@ -19,6 +19,8 @@ const submitForm = (e) => { }) data.append('ajax', '1') + + form.parentElement.classList.remove('loaded') form.parentElement.classList.add('loading') fetch(form.action, {