bard-file_field 0.1.4 → 0.1.5

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: 7de4ce1da2e32861039b0a20df05ba9a03ee1432bd13070d8aba19cc0e6297ee
4
- data.tar.gz: b7827c0fdd0a5c738eabbaee1ef5367e5a3c692dcd083f5f1c5a5773d08d4e91
3
+ metadata.gz: 21a07daaa98d68d77291864ff9fd6d4d84c015839969e080a07bbc14c1090e16
4
+ data.tar.gz: 65464101a67f2e72a5a5e52c2d88f81890d5114ec46fc79afde1b0ae9b3797a3
5
5
  SHA512:
6
- metadata.gz: 2cfe86858cfb2ce85d9e015e183d826aaeca3d80dae4cf54834e6efa0cac2d60cd118f6508d9266f1eead98efaa582c24f5865d618539a25bd361d51c35afce0
7
- data.tar.gz: da3b9c98a3e163c79e80019ed605f33b8543d15c28100d91140ea127728ad1d548ea04e8391fc037b153955583f264c80d8b834c5689b20f8d527f7f33e989cb
6
+ metadata.gz: 70538874bffa086fa2a73835e262117de7a7bffcc73b0d17bede1744078d071320cf14630413f7acc0c4ea36a229812a9386739c7ffb6f8aec8670277760a2a4
7
+ data.tar.gz: 19078bfe61accc9cec5fea853a2bf8909846c9daa8688f740042d40bd6398b4078b66f7b236165b4394259b9016e4063116d15f78b2a13da79d29497ff2117fa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bard-file_field (0.1.4)
4
+ bard-file_field (0.1.5)
5
5
  activestorage (>= 7.1.0)
6
6
 
7
7
  GEM
@@ -4790,7 +4790,9 @@ const BardFile$1 = /*@__PURE__*/ proxyCustomElement(class BardFile extends H {
4790
4790
  componentWillLoad() {
4791
4791
  this.el.removeAttribute("id");
4792
4792
  FormController.instance(this.el.closest("form"));
4793
- this.files = Array.from(this.el.children).filter(e => e.tagName == "UPLOADED-FILE");
4793
+ const existingFiles = Array.from(this.el.children).filter(e => e.tagName == "UPLOADED-FILE");
4794
+ if (existingFiles.length > 0)
4795
+ this.files = existingFiles;
4794
4796
  }
4795
4797
  // Methods
4796
4798
  get files() {
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bard
4
4
  module FileField
5
- VERSION = "0.1.4"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-file_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-19 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage