Skip to content
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

find and findAll #7

Closed
lmiller1990 opened this issue Feb 20, 2020 · 2 comments · Fixed by #36
Closed

find and findAll #7

lmiller1990 opened this issue Feb 20, 2020 · 2 comments · Fixed by #36
Assignees

Comments

@lmiller1990
Copy link
Member

@lmiller1990 lmiller1990 changed the title api: Consider behavior of find and findAll find and findAll Mar 28, 2020
@lmiller1990
Copy link
Member Author

For alpha 0 we will support the querySelector syntax only (cannot find a component/ref/name). find/findAll will return a DOMWrapper(s).

It should be able to find the ROOT node(s). eg:

<template>
  <div class="foo" />
  <div class="foo" />
  <div id="bar" />
</template>
  • wrapper.find('.foo') will return a DOMWrapper
  • wrapper.findAll('foo') will return an array of DOMWrapper
  • wrapper.find('#bar') will return a DOMWrapper

@lmiller1990 lmiller1990 mentioned this issue Mar 28, 2020
18 tasks
@dobromir-hristov dobromir-hristov self-assigned this Mar 28, 2020
@dobromir-hristov
Copy link
Contributor

For this to work as we intend, I would need #25 to be merged.

lmiller1990 added a commit that referenced this issue Mar 31, 2020
Refactor find to return the root in single root element components, fix #7
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 a pull request may close this issue.

2 participants