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 = falsemyLayer.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
your click handler is replacing the HTML in the layer on click! so the one you clicked gets replaced by a new input element
Yup what Dennis sais. Just create it once and it will work.
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!