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

What is Framer? Join the Community
Return to index
Thomas Offinga
Posted Mar 24 - Read on Facebook

Hi all! I'm trying to figure out why ignoreEvents isn't working for me. Any pointers? Even this doesn't appear to work as expected:

layer.ignoreEvents = true

layer.onClick ->
print "sup"

9 Comments

Jordan Robert Dobson

Try ignoreEvents false

Jordan Robert Dobson

It will ignore events if set to true

Thomas Offinga

Yeah, that's what I'm trying to achieve: Preventing people being able to click on a button before it's even visible (or after someone has clicked it on it once).

Thomas Offinga

I added the ignoreEvents to make sure clicking this layer doesn't do anything: http://share.framerjs.com/x6tw4pf8nfkt/

Jordan Robert Dobson

So it prints when it should not?

Thomas Offinga

Exactly! :)

Jordan Robert Dobson

Oh! Do the ignore after wards. If you add an event it assumes you no longer want to ignore.

Thomas Offinga

Oh wow. Totally missed that part in the documentation... Thanks!!

Marc Krenn

I can see how this might confuse people.

Read the entire post on Facebook