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

Error while trying to create a prompt window using vuejs #3

Closed
metroidpam opened this issue Aug 28, 2020 · 5 comments
Closed

Error while trying to create a prompt window using vuejs #3

metroidpam opened this issue Aug 28, 2020 · 5 comments

Comments

@metroidpam
Copy link

image

restock:function(item){ new Attention.Prompt({ title: 'Quantité de ' + item.item_name, content: '', onSubmit(component, value) { console.log(value) } }); },

@janmarkuslanger
Copy link
Owner

@metroidpam hey there, when do you render your component. Seems like the document.body isn´t available at the time.

@metroidpam
Copy link
Author

metroidpam commented Aug 28, 2020

I tried to render the component after clicking this button
image

The script where component is used : https://github.com/metroidpam/inventaire-front/blob/master/admin/scripts/admin.js
l 28

@janmarkuslanger
Copy link
Owner

janmarkuslanger commented Aug 28, 2020 via email

@metroidpam
Copy link
Author

No problem, thank you very much anyway for providing such a cool tool and helping out with any problem!

@janmarkuslanger
Copy link
Owner

@metroidpam please get the new attention.js file from the dist. This should for now for you.
BTW: I refactor the whole lib at the moment.

Feel free to reopen the issue if the problem is still there.

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

No branches or pull requests

2 participants