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

fix: pinned callouts dont render body #73

Merged
merged 2 commits into from
Nov 12, 2020

Conversation

kellyjosephprice
Copy link
Collaborator

@kellyjosephprice kellyjosephprice commented Nov 11, 2020

Demo 🎫 Ticket

🧰 Changes

This removes a call to .splice() on the Callout component's children.
Modifying the children meant that the component couldn't render twice,
which happens when the callout is pinned to the sidebar. It's rendered
once for spacing, then again for display.

Writing a test using enzyme is somewhere between not possible and
contrived. A follow-up PR in the api-explorer will test this.

#35

This removes a call to .splice() on the Callout component's children.
Modifying the children meant that the component couldn't render twice,
which happens when the callout is pinned to the sidebar. It's rendered
once for spacing, then again for display.
@kellyjosephprice kellyjosephprice requested review from a team, rafegoldberg and billhimmelsbach and removed request for a team November 12, 2020 18:53
@kellyjosephprice kellyjosephprice merged commit b78994e into next Nov 12, 2020
@kellyjosephprice kellyjosephprice deleted the bug/pinned-callouts-missing-body branch November 12, 2020 22:32
rafegoldberg pushed a commit that referenced this pull request Nov 12, 2020
## Version 6.22.2

### 🛠 Fixes & Updates

* compat mode in ssr ([#74](#74)) ([64f1135](64f1135))
* pinned callouts dont render body ([#73](#73)) ([b78994e](b78994e))

<!--SKIP CI-->
@rafegoldberg
Copy link
Contributor

This PR was released!

🚀 Changes included in v6.22.2

erunion added a commit to readmeio/api-explorer that referenced this pull request Nov 13, 2020
* fix(markdown): pinned callouts not rendering body

readmeio/markdown#73
https://app.asana.com/0/1178132843162889/1198496636781214/f

* chore(deps): removing @readme/markdown from the root pkg because its not used

Co-authored-by: Jon Ursenbach <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants