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

Format prop elements #611

Open
neutraali opened this issue May 28, 2021 · 1 comment
Open

Format prop elements #611

neutraali opened this issue May 28, 2021 · 1 comment

Comments

@neutraali
Copy link

r-e-t-j-s (version 14.3.2) formats child elements pretty well, like so:

<p>
  <Button color="primary" onClick={handleFunction} text="Primary" />
</p>

... However, elements passed as props get the inline -treatment:

<Filter
  filters={<Form><FormField><label>Input:</label><Input name="single-input" onChange={handleFunction} value={undefined} /></FormField></Form>}
  onClear={handleFunction}
/>

maxInlineAttributesLineLength seems to have no effect here. Is there a way to get "prop elements" to get pretty-printed in the same way as regular children are? Or am I simply doing something wrong?

@armandabric
Copy link
Collaborator

It should be the case. Could you provide a reproducible example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants