Hi, all! I’m just getting into Plasmic and really enjoying it so far. However, I’m running into an issue with a custom behavior I’m trying to build. When I attach the behavior to certain components on my Plasmic page, the styling of those components changes, as shown in this Loom. Any thoughts on what might be going on here? What am I doing wrong, and how can I fix it?
That is happening because one of the props being forwarded is the
className. This is going to be fixed if you do
!key.startsWith('data-plasmic') && key !== "className" on
Thanks so much, @steep_silverfish - that change did the trick! I see that your team has also updated the code snippet here in the docs (or I misread that snippet earlier ). I really appreciate the help.
You’re welcome! And yes, we updated the docs
Ha, glad I wasn’t misremembering!