diff --git a/resources/js/components/forms/components/VSelect.vue b/resources/js/components/forms/components/VSelect.vue
index 406b467..6c68cc8 100644
--- a/resources/js/components/forms/components/VSelect.vue
+++ b/resources/js/components/forms/components/VSelect.vue
@@ -122,7 +122,8 @@ export default {
data () {
return {
isOpen: false,
- searchTerm: ''
+ searchTerm: '',
+ defaultValue: this.value ?? null
}
},
computed: {
@@ -212,7 +213,7 @@ export default {
this.$emit('input', emitValue)
} else {
if (this.value === value) {
- this.$emit('input', null)
+ this.$emit('input', this.defaultValue ?? null)
} else {
this.$emit('input', value)
}
diff --git a/resources/js/components/open/forms/components/form-logic-components/FormBlockLogicEditor.vue b/resources/js/components/open/forms/components/form-logic-components/FormBlockLogicEditor.vue
index b6d78a6..b57b9e9 100644
--- a/resources/js/components/open/forms/components/form-logic-components/FormBlockLogicEditor.vue
+++ b/resources/js/components/open/forms/components/form-logic-components/FormBlockLogicEditor.vue
@@ -4,7 +4,7 @@
Logic
+
Add some logic to this block. Start by adding some conditions, and then add some actions.
+
Select another field/block to copy its logic and apply it to "{{ field.name }}".
+
Exclude this field or make it required.
+
Exclude this field or make it required.
+
Advanced options for checkbox.
+
If enabled, checkbox will be replaced with a toggle switch
+
If enabled then this field will be star rating input.
@@ -121,7 +121,7 @@+
Keep it simple or make it a multi-lines input.
+
Adds an end date. This cannot be used with the time option yet.
+
Include time. Or not. This cannot be used with the date range option yet.
@@ -168,7 +168,7 @@ > Prefill with 'today' -+
if enabled we will pre-fill this field with the current date
@@ -193,7 +193,7 @@ Select Options+
Advanced options for your select/multiselect fields.
Options won't be in a dropdown anymore, but will all be visible
+Options won't be in a dropdown anymore, but will all be visible
@@ -221,7 +221,7 @@+
Change your form field name, pre-fill a value, add hints, etc.
@@ -331,7 +331,7 @@ > Generates a unique id on submission -+
If you enable this, we will hide this field and fill it a unique id (UUID format) on each new form submission
@@ -341,7 +341,7 @@ > Generates an auto-incremented id on submission -+
If you enable this, we will hide this field and fill it a unique number on each new form submission
@@ -431,7 +431,22 @@ export default { }, }, - watch: {}, + watch: { + 'field.width': { + handler (val) { + if (val === undefined || val === null) { + this.$set(this.field, 'width', 'full') + } + }, + immediate: true + } + }, + + created () { + if (this.field.width === undefined || this.field.width === null) { + this.$set(this.field, 'width', 'full') + } + }, mounted() { if (['text', 'number', 'url', 'email', 'phone_number'].includes(this.field.type) && !this.field.max_char_limit) {