react-geo icon indicating copy to clipboard operation
react-geo copied to clipboard

Layer Tree add ability to have click of label also click selection

Open ke5stl opened this issue 5 years ago • 1 comments

Currently, with the Layer Tree, it's possible to click on the label, and nothing happens (aside from the label becoming the active item, as shown by the highlighting of that label).

It would be appreciated if there is a property that allows clicking on the label to have the same outcome as clicking on the checkbox of that item.

This will help remove confusion, and, on mobile devices, make it a lot easier for users with small form factors, to click, since the target area will be much bigger than just the checkbox.

ke5stl avatar Jun 21 '20 16:06 ke5stl

Hi @ke5stl, thanks for your feature request! It sounds very reasonable to me to have such a property available and it should be fairly easy to implement.

Are you willing to provide a PR for this functionality?

dnlkoch avatar Jun 22 '20 08:06 dnlkoch