@iankibetsh/shframework 1.4.4 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/library.js CHANGED
@@ -2392,18 +2392,8 @@ var script$l = {
2392
2392
  closeModal: function () {
2393
2393
  document.body.style = '';
2394
2394
  setTimeout(() => {
2395
- const form = this.$refs.ShAutoForm;
2396
- if (form) {
2397
- const modal = form.closest('.modal.show');
2398
- if (modal) {
2399
- modal.click();
2400
- }
2401
- } else {
2402
- const backdrops = document.getElementsByClassName('modal-backdrop fade show');
2403
- if (backdrops.length > 0) {
2404
- backdrops[0].remove();
2405
- }
2406
- }
2395
+ const closeBtn = this.$refs.ShAutoForm.closest('.modal-dialog').querySelector('[data-bs-dismiss="modal"]');
2396
+ closeBtn && closeBtn.click();
2407
2397
  this.form_status = 0;
2408
2398
  }, 1500);
2409
2399
  },
package/dist/library.mjs CHANGED
@@ -2379,18 +2379,8 @@ var script$l = {
2379
2379
  closeModal: function () {
2380
2380
  document.body.style = '';
2381
2381
  setTimeout(() => {
2382
- const form = this.$refs.ShAutoForm;
2383
- if (form) {
2384
- const modal = form.closest('.modal.show');
2385
- if (modal) {
2386
- modal.click();
2387
- }
2388
- } else {
2389
- const backdrops = document.getElementsByClassName('modal-backdrop fade show');
2390
- if (backdrops.length > 0) {
2391
- backdrops[0].remove();
2392
- }
2393
- }
2382
+ const closeBtn = this.$refs.ShAutoForm.closest('.modal-dialog').querySelector('[data-bs-dismiss="modal"]');
2383
+ closeBtn && closeBtn.click();
2394
2384
  this.form_status = 0;
2395
2385
  }, 1500);
2396
2386
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",