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

bug: usage of actions in docs #11

Closed
paoloricciuti opened this issue Mar 10, 2023 · 3 comments
Closed

bug: usage of actions in docs #11

paoloricciuti opened this issue Mar 10, 2023 · 3 comments

Comments

@paoloricciuti
Copy link

Most of the examples in the docs make it seems like you can use the actions on Components...this is simply not permitted in svelte. This can lead inexperienced devs to wonder how they can make their custom button component draggable. I understand it is for simplicity but a bit of markup never killed anyone....I'd say the correct thing to do is update the examples.

@ankurrsinghal
Copy link
Owner

You mean how Svelte actions are only permitted on the native DOM Elements?

@paoloricciuti
Copy link
Author

Exactly

@ankurrsinghal
Copy link
Owner

@paoloricciuti Thanks for raising the issue, made the changes!

@ankurrsinghal ankurrsinghal changed the title Fix the usage of actions in docs bug: usage of actions in docs Mar 11, 2023
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