Fix Livewire BindingResolutionException: replace @this calls in pushed scripts with #[On] + Livewire.emit
- Add #[On] attributes to 5 Livewire component methods:
- LayerManager::saveManualGeojson
- ProjectForm::setLocation
- ProjectMap::selectFeature (already had #[On])
- TaskForm::closeModal
- TaskKanban::updateTaskStatus
- Replace @this.method() in @push('scripts') with Livewire.emit() calls
- Fix DataTable event payloads from objects {id: X} to scalars X for:
- FeatureTable::map-select-feature
- InspectionTable::map-view-inspection, edit-inspection, delete-inspection
This commit is contained in:
@@ -199,7 +199,7 @@
|
||||
features: features,
|
||||
style: { color: allLayersData[currentEditableLayerId]?.color || '#3b82f6' }
|
||||
};
|
||||
@this.saveManualGeojson(JSON.stringify(finalGeojson));
|
||||
Livewire.emit('save-manual-geojson', JSON.stringify(finalGeojson));
|
||||
}
|
||||
|
||||
// Eventos Livewire
|
||||
|
||||
Reference in New Issue
Block a user