inertia-bootstrap-forms 1.0.36 → 1.0.38

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.36",
3
+ "version": "1.0.38",
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",
@@ -153,7 +153,7 @@ export default defineComponent({
153
153
  </Alert>
154
154
  </slot>
155
155
  <slot name="message" v-if="form.hasMessage" :form="form">
156
- <Alert type="success" v-html="form.successMessage"></Alert>
156
+ <Alert type="success" v-html="form.successMessage" v-if="form.successMessage"></Alert>
157
157
  </slot>
158
158
  <slot :form="form" :submit="submit"/>
159
159
  </form>
@@ -92,6 +92,7 @@ export default defineComponent({
92
92
  init() {
93
93
  this.choices = new Choices(this.$refs.input, {
94
94
  searchEnabled: (this.searchEnabled || !!this.search?.url),
95
+ searchChoices: (this.searchEnabled && !this.search?.url),
95
96
  removeItemButton: true,
96
97
  placeholderValue: this.placeholder,
97
98
  searchPlaceholderValue: this.placeholder,
@@ -125,6 +126,8 @@ export default defineComponent({
125
126
  );
126
127
  },
127
128
  async doSearch(searchTerm) {
129
+ if(!this.search?.url) return;
130
+
128
131
  await this.setLoading();
129
132
 
130
133
  if (this.searchController) {