hotwire_combobox 0.1.39 → 0.1.40

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: 49f81dc7ada4155b100cf7043fbb8b02a10f0e29c636bc1ba4b1f97bb0f3427f
4
- data.tar.gz: 785782d46ca4d70fc2b8463d0c9812a0d1ea2009c21274469457cf313a4d59b2
3
+ metadata.gz: e3b6e7d5c71ba2836a388709890b4402ab2b3ff4ab194a2d1ce75928d96b3886
4
+ data.tar.gz: 78a2543c2354e7dccfe0477288144845b6d06a7611c01204612fd24b53cb6bc9
5
5
  SHA512:
6
- metadata.gz: 0dac85e0c02124f5e1c6aee86fa3f06bda5b9434b2df5953e6992bc7df70ddaec4e4e252ce16ac7140a9d09edb9d1cb257c364f26cf21b41bf500a544614cb27
7
- data.tar.gz: 8e63361787fac58a9a624bccd4a14e6939d26b95d18d87a5852016ff13d8e3afa7c217bc9d4b1e8ada89a3b0aa0935f8b006f845c54ce82531b069563db28353
6
+ metadata.gz: d1e72f48fb5b0387b454afe6cfa7484b0e5c84dfe18000d025005558fc2e29232047f5179e82dbc41b7b48147f3b76d66ae72ff2d0f8c777340a1ab06a3ab9d8
7
+ data.tar.gz: 840447f162fba6892a920e74ddde5b862bb9ac4deac7d56948e62998470d19e9747112a066dfbd45db476c628d1910442d33b7f28b2fed242bc1de698a4a8a12
@@ -704,9 +704,9 @@ Combobox.Options = Base => class extends Base {
704
704
  };
705
705
 
706
706
  Combobox.Selection = Base => class extends Base {
707
- selectOption(event) {
708
- this._select(event.currentTarget);
707
+ selectOptionOnClick(event) {
709
708
  this.filter(event);
709
+ this._select(event.currentTarget);
710
710
  this.close();
711
711
  }
712
712
 
@@ -708,9 +708,9 @@
708
708
  };
709
709
 
710
710
  Combobox.Selection = Base => class extends Base {
711
- selectOption(event) {
712
- this._select(event.currentTarget);
711
+ selectOptionOnClick(event) {
713
712
  this.filter(event);
713
+ this._select(event.currentTarget);
714
714
  this.close();
715
715
  }
716
716
 
@@ -2,9 +2,9 @@ import Combobox from "hw_combobox/models/combobox/base"
2
2
  import { wrapAroundAccess } from "hw_combobox/helpers"
3
3
 
4
4
  Combobox.Selection = Base => class extends Base {
5
- selectOption(event) {
6
- this._select(event.currentTarget)
5
+ selectOptionOnClick(event) {
7
6
  this.filter(event)
7
+ this._select(event.currentTarget)
8
8
  this.close()
9
9
  }
10
10
 
@@ -37,7 +37,7 @@ class HotwireCombobox::Listbox::Option
37
37
 
38
38
  def data
39
39
  {
40
- action: "click->hw-combobox#selectOption",
40
+ action: "click->hw-combobox#selectOptionOnClick",
41
41
  filterable_as: filterable_as,
42
42
  autocompletable_as: autocompletable_as,
43
43
  value: value
@@ -1,3 +1,3 @@
1
1
  module HotwireCombobox
2
- VERSION = "0.1.39"
2
+ VERSION = "0.1.40"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotwire_combobox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.39
4
+ version: 0.1.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Farias