inertia-bootstrap-forms 1.0.74 → 1.0.76

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,6 +1,6 @@
1
1
  {
2
2
  "name": "inertia-bootstrap-forms",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "description": "Create bootstrap forms with inertia and twitter bootstrap",
5
5
  "main": "dist/inertia-bootstrap-forms.cjs.js",
6
6
  "module": "dist/inertia-bootstrap-forms.es.js",
@@ -91,4 +91,8 @@ textarea.tiny-editor-input-el {
91
91
  .tox .tox-edit-area::before {
92
92
  display: none;
93
93
  }
94
+
95
+ .tox .tox-throbber{
96
+ z-index: var(--bs-dropdown-zindex, 900) !important;
97
+ }
94
98
  </style>
@@ -88,8 +88,20 @@ export default defineComponent({
88
88
  return (typeof this.modelValue == 'object') ? Object.values(this.modelValue) : (this.modelValue ? [this.modelValue] : null)
89
89
  }
90
90
  },
91
+ watch: {
92
+ 'options': {
93
+ handler: function (val, old) {
94
+ setTimeout(() => this.init(), 300);
95
+ },
96
+ deep: true
97
+ }
98
+ },
91
99
  methods: {
92
100
  init() {
101
+ if (this.choices) {
102
+ this.destroy();
103
+ }
104
+
93
105
  this.choices = new Choices(this.$refs.input, {
94
106
  searchEnabled: (this.searchEnabled || !!this.search?.url),
95
107
  searchChoices: (this.searchEnabled && !this.search?.url),
@@ -126,7 +138,7 @@ export default defineComponent({
126
138
  );
127
139
  },
128
140
  async doSearch(searchTerm) {
129
- if(!this.search?.url) return;
141
+ if (!this.search?.url) return;
130
142
 
131
143
  await this.setLoading();
132
144
 
@@ -300,7 +300,7 @@
300
300
  }
301
301
 
302
302
  .choices__list--dropdown .choices__item--selectable.is-highlighted, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
303
- background-color: var(--bs-secondary-bg, #ddd)
303
+ background-color: var(--bs-tertiary-bg, #ddd)
304
304
  }
305
305
 
306
306
  .choices__list--dropdown .choices__item--selectable.is-highlighted::after, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after {