{"action":"created","issue":{"url":"https://api.github.com/repos/bernat/best_in_place/issues/491","labels_url":"https://api.github.com/repos/bernat/best_in_place/issues/491/labels{/name}","comments_url":"https://api.github.com/repos/bernat/best_in_place/issues/491/comments","events_url":"https://api.github.com/repos/bernat/best_in_place/issues/491/events","html_url":"https://github.com/bernat/best_in_place/issues/491","id":86625440,"number":491,"title":"Cannot set placeholder test or value ","user":{"login":"ttseng","id":519336,"avatar_url":"https://avatars.githubusercontent.com/u/519336?v=3","gravatar_id":"","url":"https://api.github.com/users/ttseng","html_url":"https://github.com/ttseng","followers_url":"https://api.github.com/users/ttseng/followers","following_url":"https://api.github.com/users/ttseng/following{/other_user}","gists_url":"https://api.github.com/users/ttseng/gists{/gist_id}","starred_url":"https://api.github.com/users/ttseng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttseng/subscriptions","organizations_url":"https://api.github.com/users/ttseng/orgs","repos_url":"https://api.github.com/users/ttseng/repos","events_url":"https://api.github.com/users/ttseng/events{/privacy}","received_events_url":"https://api.github.com/users/ttseng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-09T14:48:30Z","updated_at":"2015-07-26T21:47:48Z","closed_at":null,"body":"In my Rails app, the best in place textarea doesn't hold the value of the textarea on page load.  If I edit it, though, it will act as expected.  Here is a video of the bug:\r\n\r\nhttps://youtu.be/xA18Odj47sc\r\n\r\nThis is my code:\r\n\r\n <span id=\"collectionNameBIP\">\r\n      <%= best_in_place @collection, :name, :type => :textarea, :nil => @collection.name, :value => @collection.name, :place_holder => @collection.name %>\r\n    </span>"},"comment":{"url":"https://api.github.com/repos/bernat/best_in_place/issues/comments/125043364","html_url":"https://github.com/bernat/best_in_place/issues/491#issuecomment-125043364","issue_url":"https://api.github.com/repos/bernat/best_in_place/issues/491","id":125043364,"user":{"login":"hrangel","id":5436094,"avatar_url":"https://avatars.githubusercontent.com/u/5436094?v=3","gravatar_id":"","url":"https://api.github.com/users/hrangel","html_url":"https://github.com/hrangel","followers_url":"https://api.github.com/users/hrangel/followers","following_url":"https://api.github.com/users/hrangel/following{/other_user}","gists_url":"https://api.github.com/users/hrangel/gists{/gist_id}","starred_url":"https://api.github.com/users/hrangel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrangel/subscriptions","organizations_url":"https://api.github.com/users/hrangel/orgs","repos_url":"https://api.github.com/users/hrangel/repos","events_url":"https://api.github.com/users/hrangel/events{/privacy}","received_events_url":"https://api.github.com/users/hrangel/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T21:47:48Z","updated_at":"2015-07-26T21:47:48Z","body":"Try wrapping its initializer in a document ready. Like that:\r\n```javascript\r\n$(document).ready(function() {\r\n\t$('.best_in_place').best_in_place();\r\n});\r\n```"}}