|
@@ -96,7 +96,7 @@ function handleRoot(el, Alpine) {
|
|
this.__nullable = Alpine.extractProp(el, 'nullable', false)
|
|
this.__nullable = Alpine.extractProp(el, 'nullable', false)
|
|
this.__compareBy = Alpine.extractProp(el, 'by')
|
|
this.__compareBy = Alpine.extractProp(el, 'by')
|
|
|
|
|
|
- this.__context = generateContext(this.__isMultiple, 'vertical', () => this.__activateSelectedOrFirst())
|
|
|
|
|
|
+ this.__context = generateContext(Alpine, this.__isMultiple, 'vertical', () => this.__activateSelectedOrFirst())
|
|
|
|
|
|
let defaultValue = Alpine.extractProp(el, 'default-value', this.__isMultiple ? [] : null)
|
|
let defaultValue = Alpine.extractProp(el, 'default-value', this.__isMultiple ? [] : null)
|
|
|
|
|
|
@@ -109,7 +109,7 @@ function handleRoot(el, Alpine) {
|
|
Alpine.effect(() => {
|
|
Alpine.effect(() => {
|
|
// Everytime the value changes, we need to re-render the hidden inputs,
|
|
// Everytime the value changes, we need to re-render the hidden inputs,
|
|
// if a user passed the "name" prop...
|
|
// if a user passed the "name" prop...
|
|
- this.__inputName && renderHiddenInputs(this.$el, this.__inputName, this.__value)
|
|
|
|
|
|
+ this.__inputName && renderHiddenInputs(Alpine, this.$el, this.__inputName, this.__value)
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|