govuk_publishing_components 38.3.0 → 38.3.1

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: 4a962544f5f3b684f7f946008d73fc0c4d266147adeb86761b2fafbdf9f77713
4
- data.tar.gz: 3c14a82d4308f941d8dc7ac0990c8a504b1ada7dcd84666b2140a4bcdba01b79
3
+ metadata.gz: 174edc8aff1507967b48ea3efcec2a79d56c22adbf64f5414d2d758603fb0ef5
4
+ data.tar.gz: 0ce85ca601099c9341c2e956fef04e5fb1dbea78ffdc298a997e287423d21c8e
5
5
  SHA512:
6
- metadata.gz: 2b237ac3408f80f1fd42d810e48a8d30e164d0fbd61b0e1e8314bf16d4b6e17809a0d3dc5a0c4ee4dbb4369a80f402244ed5ff6201779426e02e459c416567fe
7
- data.tar.gz: 7c74c53993d223235c04646f52f5e894f077486ce04d7cf82ddedf73b3e0800d225ea69b75cb0516a6bdfa0c6bdabe1690594aef0643d55b1c1b88cc8db98960
6
+ metadata.gz: d47f8dd957ff9d95f2c118aa7d747e4c43ef7dbf95dc80636d6c2583e925235370ca0f246d1be53bb83bf8bf90633e46e859c79fadf303779a886567c76e1528
7
+ data.tar.gz: 9e38d46ac5722147f3f48ffecb1d5d08b3ae93ca4117c48792a3e8903561a84947e7c1d5e32d3d66ef1413519bf7c30e8bb8424b54d2af0b3d005c5cd93a6bca
@@ -161,8 +161,10 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
161
161
  this.prompt.hidden ? this.prompt.hidden = false : this.prompt.hidden = true
162
162
 
163
163
  if (!this.activeForm.hidden) {
164
- this.activeForm.querySelectorAll('.gem-c-textarea .govuk-textarea, .gem-c-input.govuk-input')[0]
165
- .focus()
164
+ var input = this.activeForm.querySelectorAll('.gem-c-textarea .govuk-textarea, .gem-c-input.govuk-input')
165
+ if (input.length > 0) {
166
+ input[0].focus()
167
+ }
166
168
  } else {
167
169
  this.activeForm = false
168
170
  clearInterval(this.timerInterval)
@@ -7,7 +7,7 @@
7
7
  end
8
8
  %>
9
9
  <% if remaining.any? %>
10
- <%= items.to_sentence(last_word_connector: ', ').html_safe %>
10
+ <%= items.to_sentence(last_word_connector: ' and ').html_safe %>
11
11
  <div class="gem-c-metadata__toggle-wrap govuk-!-display-none-print">
12
12
  <a href="#"
13
13
  class="gem-c-metadata__definition-link govuk-!-display-none-print"
@@ -21,5 +21,5 @@
21
21
  </div>
22
22
  <span id="toggle-<%= toggle_id %>" class="gem-c-metadata__toggle-items js-hidden"><%= remaining.to_sentence.html_safe %></span>
23
23
  <% else %>
24
- <%= items.to_sentence.html_safe %>
24
+ <%= items.to_sentence(last_word_connector: ' and ').html_safe %>
25
25
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "38.3.0".freeze
2
+ VERSION = "38.3.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 38.3.0
4
+ version: 38.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-10 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: govuk_app_config