Skip to content

Conversation

@andrasbacsai
Copy link
Member

Summary

  • Remove wire:ignore from modal-input component wrapper to fix child Livewire component method calls
  • Add unique wire:key to EditCompose component for proper Livewire tracking when teleported

Problem

When trying to edit a service compose file, clicking the Save button resulted in:

Unable to call component method. Public method [saveEditedCompose] not found on component

This occurred because:

  1. The wire:ignore directive on the modal wrapper prevented Livewire from tracking child components
  2. The EditCompose component lacked a unique wire:key when being teleported to the body via x-teleport

Changes

  • resources/views/components/modal-input.blade.php: Removed wire:ignore from line 16
  • resources/views/livewire/project/service/stack-form.blade.php: Added :key="'edit-compose-'.$service->id" to the EditCompose component

Testing

  • Verified that the saveEditedCompose method is now callable from the modal
  • Tested that other modal interactions still work correctly

🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant