ariadne_view_components 0.0.52-arm64-darwin → 0.0.53-arm64-darwin

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,12 +32,14 @@ class OptionsController extends SyncedBooleanAttributesController {
32
32
  }
33
33
  optionTargetConnected(element) {
34
34
  const key = __classPrivateFieldGet(this, _OptionsController_instances, "m", _OptionsController_getElementKey).call(this, element);
35
- if (this.doesElementHaveOnAttrs(element)) {
35
+ const isActive = this.activeOptionsValue[key] || this.doesElementHaveOnAttrs(element);
36
+ if (isActive) {
36
37
  __classPrivateFieldGet(this, _OptionsController_instances, "m", _OptionsController_activateKey).call(this, key);
37
38
  }
38
39
  else {
39
40
  __classPrivateFieldGet(this, _OptionsController_instances, "m", _OptionsController_deactivateKey).call(this, key);
40
41
  }
42
+ this.updateAttributesForElement(element, isActive);
41
43
  }
42
44
  getValueForElement(element) {
43
45
  var _a;
@@ -53,11 +53,14 @@ export default class OptionsController
53
53
 
54
54
  optionTargetConnected(element: Element) {
55
55
  const key = this.#getElementKey(element)
56
- if (this.doesElementHaveOnAttrs(element)) {
56
+ const isActive = this.activeOptionsValue[key] || this.doesElementHaveOnAttrs(element)
57
+ if (isActive) {
57
58
  this.#activateKey(key)
58
59
  } else {
59
60
  this.#deactivateKey(key)
60
61
  }
62
+
63
+ this.updateAttributesForElement(element, isActive)
61
64
  }
62
65
 
63
66
  #shouldChangeState(isCurrentlyActive: boolean, wasSelected: boolean) {
@@ -3,6 +3,6 @@
3
3
  # :nocov:
4
4
  module Ariadne
5
5
  module ViewComponents
6
- VERSION = "0.0.52"
6
+ VERSION = "0.0.53"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ariadne_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.52
4
+ version: 0.0.53
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-07 00:00:00.000000000 Z
11
+ date: 2023-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tailwind_merge
@@ -342,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
342
  - !ruby/object:Gem::Version
343
343
  version: '0'
344
344
  requirements: []
345
- rubygems_version: 3.4.15
345
+ rubygems_version: 3.4.16
346
346
  signing_key:
347
347
  specification_version: 4
348
348
  summary: ViewComponents for the Ariadne Design System