@ekzo-dev/bootstrap-addons 5.2.14 → 5.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ekzo-dev/bootstrap-addons",
3
3
  "description": "Aurelia Bootstrap additional component",
4
- "version": "5.2.14",
4
+ "version": "5.2.16",
5
5
  "homepage": "https://github.com/ekzo-dev/aurelia-components/tree/main/packages/bootstrap-addons",
6
6
  "repository": {
7
7
  "type": "git",
@@ -56,7 +56,7 @@
56
56
  class="ps-4"
57
57
  type="button"
58
58
  repeat.for="option of v"
59
- bs-dropdown-item="active.bind: option === selectedOption; disabled.bind: option.disabled"
59
+ bs-dropdown-item="active.bind: option.value === selectedOption.value; disabled.bind: option.disabled"
60
60
  click.trigger="selectOption(option)"
61
61
  >
62
62
  ${option.text || ' '}
@@ -50,7 +50,7 @@ const LargeOptions: Story = (args) => ({
50
50
 
51
51
  LargeOptions.args = {
52
52
  options: Array.from({ length: 1000 }).map((v, i) => ({
53
- value: i,
53
+ value: i.toString(),
54
54
  text: `Option ${i} has long content which forces dropdown menu to scale larger that select box`,
55
55
  })),
56
56
  };
@@ -31,6 +31,16 @@ export class BsSelect extends BaseBsSelect implements ICustomElementViewModel {
31
31
 
32
32
  optionsCount: number = 0;
33
33
 
34
+ deactivating: boolean = false;
35
+
36
+ binding() {
37
+ this.deactivating = false;
38
+ }
39
+
40
+ unbinding() {
41
+ this.deactivating = true;
42
+ }
43
+
34
44
  attached() {
35
45
  if (this.multiple) {
36
46
  this.#setHeight();
@@ -80,6 +90,8 @@ export class BsSelect extends BaseBsSelect implements ICustomElementViewModel {
80
90
  }
81
91
 
82
92
  get selectedOption(): ISelectOption | undefined {
93
+ if (this['__raw__'].deactivating) return;
94
+
83
95
  const { matcher, value } = this;
84
96
  let { options } = this;
85
97