-
Notifications
You must be signed in to change notification settings - Fork 176
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
Fold button submits forms #259
Comments
I created a pull request for review: #260 |
mstenta
added a commit
to farmOS/farmOS-map
that referenced
this issue
Jan 6, 2020
@mstenta thanks for reporting and the PR 👍 |
Thanks @walkermatt for reviewing and merging! Do you foresee a new tagged release in the near future? No rush - just curious. I'm referencing a specific commit in my package.json now. |
Just published https://www.npmjs.com/package/ol-layerswitcher/v/3.5.0 🎉 |
Terrific! Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you use the
fold
property to collapse a layer group, and the map is within a form, clicking the arrow (which is a<button>
) to expand the group submits the form.I think we just need to add
e.preventDefault();
to fix this. Here is the click function:ol-layerswitcher/src/ol-layerswitcher.js
Line 308 in 3273500
For reference, here is the click callback for the main LayerSwitcher button, which does have a
e.preventDefault();
in it:ol-layerswitcher/src/ol-layerswitcher.js
Line 57 in 3273500
The text was updated successfully, but these errors were encountered: