Detail View is not able to call functions defined outside of it's own view #2009
johannesMEGABAD
started this conversation in
BUG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Livewire PowerGrid version
v6.6.3
Livewire version
v3.6.4
Laravel version
v12.33.0
Which PHP version are you using?
PHP 8.2
Which Theme are you using?
Tailwind
Have you published the resource files and customized them? (php artisan vendor:publish)
Yes
What is the problem?
The issue is mostlikely coming from https://github.com/Power-Components/livewire-powergrid/releases/tag/v6.5.0
Before that version it still worked fine.
When creating a table and giving it a detail view, the view can not call functions defined in the parent table.
Let's say the following:
greet(). Calling it in the parent view is no problem since it is the same component.greet()function anymoreThis is due to the reason that PowerGrid tries to execute
PowerComponents\LivewirePowerGrid\Livewire\Detail::greet()which does not exists in it's context.Before mentioned update it worked.
It also does not work when creating a separate Livewire component for the detail view. Same issue then.
Code snippets
How do you expect it to work?
I atleast expected it to work when defining a specific Livewire component for the detail view.
Or atleast let the user be able to somehow define functions for the detail view to call other then directly inside the detail view.
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions