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
Prevent adding layer while expanding Layer-Control on mobile #8910
Prevent adding layer while expanding Layer-Control on mobile #8910
Conversation
02d610a
to
b432065
Compare
@jonkoops @mourner @IvanSanchez please review, I would like to release a new |
I'm not sure it can be done this way, but I've applied the changes to the
Should I change anything else? Thank you very much @Falke-Design |
@PedroVenancio I don't know how you access With this, it should work:
|
Oh, I can confirm the fix with L.control.layers! The problem was that I was testing in a app where I'm using Leaflet.Control.Layers.Tree (https://github.com/jjimenezshaw/Leaflet.Control.Layers.Tree). In this case, it keeps with the same behaviour: https://plnkr.co/edit/W135NFAEtQV0a3ZK https://run.plnkr.co/plunks/W135NFAEtQV0a3ZK Do you think it needs to be fixed also in Leaflet.Control.Layers.Tree? |
Hi @Falke-Design |
@PedroVenancio yeah I'm pretty sure that this needs to be added in |
fixes #8778
Cherry-pick into
v1