Feature Request: Selecting child element of element container selects parent.
See original GitHub issueFeature request:
Selecting a child element of a specified parent class, parent will be selected. Ex:
<div>
          <img>
          <label>
    </div>
(clicking <img> or <label> should by-option be able to select <div>, and not select the children)
What is the current behavior?
Clicking on an element will only select itself.
(I have set selectables to the class of the <div> elements, still clicking on <img> or <label> still selects them.
Your environment:
Selection-version: latest
Browser-version:  Pale Moon 28 (Firefox 52-based)
Operating-system:  Windows
Issue Analytics
- State:
 - Created 5 years ago
 - Comments:9 (5 by maintainers)
 
Top Results From Across the Web
Child combinator - CSS: Cascading Style Sheets | MDN
The child combinator (>) is placed between two CSS selectors. It matches only those elements matched by the second selector that are the ......
Read more >CSS :has(.parent-selectors) - DEV Community     
Parent selectors select parent elements, right? They actually select grandparents and any matching ancestors as well.
Read more >Meet :has, A Native CSS Parent Selector (And More)
CSS selectors are limited by the selection direction — child descendant or following element can be selected, but not the parent or ...
Read more >Is there a CSS parent selector? - Stack Overflow
Parent selection is done via the pseudo-class :has() . For example, div:has(> .child) will select all <div> elements with a child having a...
Read more >How to get the child element of a parent using JavaScript
Select an element whose child element is going to be selected. Use .children property to get access of all the children of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thank you, it worked. I will put it on GitHub once it somewhat works like a file explorer. Right now, it’s still in a very early stage. I will notify you once it’s up if you’re interested.
But that sounds awesome! Did you put it on GitHub? 😄