Skip to content

Conversation

Janiczek
Copy link
Collaborator

@Janiczek Janiczek commented Mar 1, 2023

fixes #213

So far I've added tests to map this behaviour, of which the interesting one related to #213 fails (L201-214).

It seems Selector.all [...] delegates the list back to Selector.Internal.queryAll, which allows finding the child selector anywhere in the tree.

This goes against our assumption in Elm Slack:

Screenshot 2023-03-01 at 20 46 19

It might be that 🅰️ the behaviour of Selector.all is correct and our assumption was wrong
or 🅱️ Selector.all is wrong and we need to make a breaking change in behaviour.
Or maybe there is a way to add some new all-like primitive that will not allow mixing nesting levels, thus not a breaking change.

@Janiczek Janiczek marked this pull request as draft March 1, 2023 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Selector.all does not fail if any descendants match the given selectors

1 participant