coveragebook_components 0.18.1 → 0.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/build/coco/coco.js +6 -2
- data/app/components/coco/buttons/button/button.js +5 -1
- data/lib/coco.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d1e2c38d35907997a458be41c8d3c58aa1e2bd59a574d859ae79a4249baac99
|
4
|
+
data.tar.gz: 61be0de9cfc48cfa7f1bacd3634f5684515e2f212475690704102ce63ea6ef93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1272f8a3e79da8c29eaad226d0e824782b04b787d126980fb232a208d107be678fa2865b1e2bbfafa4b24dd9babcff78eda1e85622ec3feba3ba7e098b34cd03
|
7
|
+
data.tar.gz: 4413438ae4e3e67299bcd80097b9dd80269bd17c21eea80fc5e755d81321c9873584666c6ee4dd2d1eb474cf41a793c466faf0c98ebf8d63c3dcde15c063d15d
|
@@ -15444,7 +15444,7 @@ var alpine_default = import_alpinejs.default;
|
|
15444
15444
|
// ../../../package.json
|
15445
15445
|
var package_default = {
|
15446
15446
|
name: "coveragebook-components",
|
15447
|
-
version: "0.18.
|
15447
|
+
version: "0.18.2",
|
15448
15448
|
repository: "git@github.com:coveragebook/coco.git",
|
15449
15449
|
license: "NO LICENSE",
|
15450
15450
|
author: "Mark Perkins <mark@coveragebook.com>",
|
@@ -15653,7 +15653,11 @@ var button_default = CocoComponent("button", (data = {}) => {
|
|
15653
15653
|
if (this.approving) {
|
15654
15654
|
event.stopPropagation();
|
15655
15655
|
this.confirmed = true;
|
15656
|
-
this.dropdown.trigger.
|
15656
|
+
if (this.dropdown.trigger.getAttribute("type") === "submit") {
|
15657
|
+
this.$root.closest("form").requestSubmit();
|
15658
|
+
} else {
|
15659
|
+
this.dropdown.trigger.click();
|
15660
|
+
}
|
15657
15661
|
this.dropdown.hide();
|
15658
15662
|
this.confirmed = false;
|
15659
15663
|
this.approving = false;
|
@@ -84,7 +84,11 @@ export default CocoComponent("button", (data = {}) => {
|
|
84
84
|
if (this.approving) {
|
85
85
|
event.stopPropagation();
|
86
86
|
this.confirmed = true;
|
87
|
-
this.dropdown.trigger.
|
87
|
+
if (this.dropdown.trigger.getAttribute("type") === "submit") {
|
88
|
+
this.$root.closest("form").requestSubmit();
|
89
|
+
} else {
|
90
|
+
this.dropdown.trigger.click();
|
91
|
+
}
|
88
92
|
this.dropdown.hide();
|
89
93
|
this.confirmed = false;
|
90
94
|
this.approving = false;
|
data/lib/coco.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveragebook_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Perkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|