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

don't eat text node wrappers that have components, bindings, or properties #1328

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

steve8708
Copy link
Contributor

we have code for converting Builder.io content to Mitosis where we skip simple unstyled wrapper divs around text

we neglected tho to make sure we don't skip (aka gobble) layers that have other important things - like components, properties, or bindings

this should fix this, making sure we only eat parents around text if they are purely a <div> tag with no style, properties, component, etc as originally intended

…rties

we have code for converting Builder.io content to Mitosis where we skip simple unstyled wrapper divs around text

we neglected tho to make sure we don't skip (aka gobble) layers that have other important things - like components, properties, or bindings

this should fix this, making sure we only eat parents around text if they are purely a `<div>` tag with no style, properties, component, etc as originally intended
@steve8708 steve8708 requested a review from samijaber as a code owner January 10, 2024 01:35
Copy link

vercel bot commented Jan 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mitosis-fiddle ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2024 2:06am

Copy link

nx-cloud bot commented Jan 10, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit cc53e64. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 4 targets

Sent with 💌 from NxCloud.

@samijaber samijaber merged commit 8ae7424 into BuilderIO:main Jan 10, 2024
5 checks passed
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.

2 participants