Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@click is not working in another x-data #786

Closed
imrancoder opened this issue Sep 21, 2020 · 4 comments
Closed

@click is not working in another x-data #786

imrancoder opened this issue Sep 21, 2020 · 4 comments
Labels
question Further information is requested

Comments

@imrancoder
Copy link

image

@SimoTod
Copy link
Collaborator

SimoTod commented Sep 21, 2020

showForm doesn't exist in x-data

@HugoDF HugoDF added the question Further information is requested label Sep 21, 2020
@imrancoder
Copy link
Author

showForm doesn't exist in x-data

it is there in Parent Div

image

as I highlighted the Add New and List Record Buttons they are Working But inside of Another x-data showForm is Not Working

@SimoTod
Copy link
Collaborator

SimoTod commented Sep 22, 2020

Alpine components don't have access to the parent scope.
There is a long conversation here if you need more details: #49

It was never implemented in core but there are alternatives:

For your specific case, maybe the third option is the easiest one

@imrancoder
Copy link
Author

Alpine components don't have access to the parent scope.
There is a long conversation here if you need more details: #49

It was never implemented in core but there are alternatives:

For your specific case, maybe the third option is the easiest one

Thanks for your guidance and support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants