Skip to content

Commit

Permalink
Remove callMountedFormComponentAction since it does not work anymore …
Browse files Browse the repository at this point in the history
…and only rely on dispatching the picked-resource event and add get initialValue on entangled state, else state.includes does not work
  • Loading branch information
jyrkidn committed Dec 6, 2023
1 parent 3f0fc7c commit b3f1c63
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions resources/views/livewire/resource-picker.blade.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
<div x-data="{
state: @entangle('state'),
state: @entangle('state').initialValue,
isMultiple: @entangle('isMultiple'),
submit () {
$wire.$parent.callMountedFormComponentAction({
statePath: '{{ $statePath }}',
resources: this.state,
})
$wire.dispatch('picked-resource', {
statePath: '{{ $statePath }}',
resources: this.state,
Expand Down

0 comments on commit b3f1c63

Please sign in to comment.