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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6e884ae365d700946ff6b8fcaba45157c23dd63f1c99eb9bfe479d8ffee61c1
4
- data.tar.gz: 74c0748337f4a09bea38d496e71c7c62f39282fdb457bb8bc443507171f58ba2
3
+ metadata.gz: 8d1e2c38d35907997a458be41c8d3c58aa1e2bd59a574d859ae79a4249baac99
4
+ data.tar.gz: 61be0de9cfc48cfa7f1bacd3634f5684515e2f212475690704102ce63ea6ef93
5
5
  SHA512:
6
- metadata.gz: 7213a41ac90c6eb3288873ca5f82f36a6dd816cb98e865fe9089a7962c8efc5b8052926ac67d709b4c87a2c06af34cb2b8a61af8a07bb2fd2abcbfd70994fb11
7
- data.tar.gz: 248c6c5d9c9d17a8aef5de3c352cb0148c0574dd516272344fdbb01633afe3673279f1357a66c10d1c74ce46640cfbcaf6297dbddcdcafd206ce0911457535eb
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.1",
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.click();
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.click();
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
@@ -1,3 +1,3 @@
1
1
  module Coco
2
- VERSION = "0.18.1"
2
+ VERSION = "0.18.2"
3
3
  end
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.1
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-14 00:00:00.000000000 Z
11
+ date: 2024-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails