Support the All selector (“*”)
Closed this issue · 4 comments
Hello, I have a site that's similar to the following:
<LogInForm>
<div>
<form>
<Field name="name" component="NameField"/>
<Field name="password" component="PasswordField"/>
<div>
<button type="submit" component="LogInButton"/>
</div>
</form>
</div>
</LogInForm>
I'm currently able to use the following to grab "name" field:
ReactSelector("LogInForm Field").withProps("component", "NameField")
I was wondering if there was a way to select each of the elements using just the "component" field, ignoring the value inside of the ReactSelector
. Each component property will be a unique identifier, so there won't be any conflicts with other elements.
Ideally, it'd be something as simple as `ReactSelector("*").withProps("component", "NameField").
Sorry if this isn't the correct place to ask this, I can't find a forum anywhere to ask such questions. Thank you for the help!
Hi @cswakamatsu,
Unfortunately, it's impossible to do now.
I think we can add the *
selector in future releases.
@kirovboris Great, thank you for the update! Do you have an idea when support for this might make it into the roadmap?
This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open.
We're closing this issue after a prolonged period of inactivity. If it still affects you, please add a comment to this issue with up-to-date information. Thank you.