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

What is Framer? Join the Community
Return to index
Nick Bewley
Posted Sep 24 - Read on Facebook

Saw something from Koen the other day saying to create a text input and make it editable use this:

myLayer.html = "<input type='text'>"
myLayer.ignoreEvents = false
myLayer.style["-webkit-user-select"] = "auto"

Doesn't seem to work in 1.8. The input is created but is not editable. Anyone have any ideas? There is a codepen illustrating here: http://codepen.io/anon/pen/Dyuiw. Thanks for any input

3 Comments

Dennis Zhao

your click handler is replacing the HTML in the layer on click! so the one you clicked gets replaced by a new input element

Koen Bok

Yup what Dennis sais. Just create it once and it will work.

Nick Bewley

Ok thanks guys makes sense. Having a strange problem though where the input (only an input field) is not workin in framer studio (http://cl.ly/2D3W1a0l0h37).. The very same code works in codepen.. (http://codepen.io/nickbewley/pen/HefAo) Any one with any ideas as to why it does not work in studio? Thanks a ton!

Read the entire post on Facebook