question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Selecting child element of element container selects parent.

See original GitHub issue

Feature 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:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
rn10950commented, Nov 19, 2018

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.

0reactions
Simonwepcommented, Nov 12, 2018

But that sounds awesome! Did you put it on GitHub? 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found