This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Bryan Clark
Posted Sep 21 - Read on Facebook

Ran into (I think?) a flaw in Framer's handling of Layer.name - if I have an array of layers, and give each the `name` of its index (e.g. 0, 1, 2 in the array) and try to get the layer's name in an onTap call, it's interesting - the layer.name doesn't exist for the 0th entry.

Any chance that layer.name is 0 by default, so Framer thinks it's null?

2 Comments

George Kedenburg III

Can you share your code? Not sure I'm following 100%

Bryan Clark

Sure! Tap "SectionA" and you'll note that it doesn't highlight: http://share.framerjs.com/x90ss8vo2oj4/

Read the entire post on Facebook