Skip to content

Using this tree in a form #31

New issue

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

By clicking “No 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? No Sign in to your account

Closed
RodrigoCarvalhoCode opened this issue May 3, 2017 · 1 comment
Closed

Using this tree in a form #31

RodrigoCarvalhoCode opened this issue May 3, 2017 · 1 comment
Labels

Comments

@RodrigoCarvalhoCode
Copy link

Good morning,

Using this tree inside a form is triggering the submit action each time that I expand the tree at any level.

There's any way to avoid this issue? Or there's something wrong about my tree configuration?

Thanks for the help.

@jakezatecky
Copy link
Owner

jakezatecky commented May 3, 2017

Thanks for the report @RodrigoCarvalho21!

This was caused by the lack of type="button" on the expand <button>. This made it default to type="submit", which is definitely not what we want!

I went ahead and also published a new version to npm containing this bugfix.

No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants