{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/pxt-adafruit/issues/869","repository_url":"https://api.github.com/repos/Microsoft/pxt-adafruit","labels_url":"https://api.github.com/repos/Microsoft/pxt-adafruit/issues/869/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/pxt-adafruit/issues/869/comments","events_url":"https://api.github.com/repos/Microsoft/pxt-adafruit/issues/869/events","html_url":"https://github.com/Microsoft/pxt-adafruit/issues/869","id":381757949,"node_id":"MDU6SXNzdWUzODE3NTc5NDk=","number":869,"title":"Function name placeholder appears like the value text","user":{"login":"samelhusseini","id":16690124,"node_id":"MDQ6VXNlcjE2NjkwMTI0","avatar_url":"https://avatars3.githubusercontent.com/u/16690124?v=4","gravatar_id":"","url":"https://api.github.com/users/samelhusseini","html_url":"https://github.com/samelhusseini","followers_url":"https://api.github.com/users/samelhusseini/followers","following_url":"https://api.github.com/users/samelhusseini/following{/other_user}","gists_url":"https://api.github.com/users/samelhusseini/gists{/gist_id}","starred_url":"https://api.github.com/users/samelhusseini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samelhusseini/subscriptions","organizations_url":"https://api.github.com/users/samelhusseini/orgs","repos_url":"https://api.github.com/users/samelhusseini/repos","events_url":"https://api.github.com/users/samelhusseini/events{/privacy}","received_events_url":"https://api.github.com/users/samelhusseini/received_events","type":"User","site_admin":false},"labels":[{"id":646592478,"node_id":"MDU6TGFiZWw2NDY1OTI0Nzg=","url":"https://api.github.com/repos/Microsoft/pxt-adafruit/labels/P2","name":"P2","color":"0052cc","default":false},{"id":492671697,"node_id":"MDU6TGFiZWw0OTI2NzE2OTc=","url":"https://api.github.com/repos/Microsoft/pxt-adafruit/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"samelhusseini","id":16690124,"node_id":"MDQ6VXNlcjE2NjkwMTI0","avatar_url":"https://avatars3.githubusercontent.com/u/16690124?v=4","gravatar_id":"","url":"https://api.github.com/users/samelhusseini","html_url":"https://github.com/samelhusseini","followers_url":"https://api.github.com/users/samelhusseini/followers","following_url":"https://api.github.com/users/samelhusseini/following{/other_user}","gists_url":"https://api.github.com/users/samelhusseini/gists{/gist_id}","starred_url":"https://api.github.com/users/samelhusseini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samelhusseini/subscriptions","organizations_url":"https://api.github.com/users/samelhusseini/orgs","repos_url":"https://api.github.com/users/samelhusseini/repos","events_url":"https://api.github.com/users/samelhusseini/events{/privacy}","received_events_url":"https://api.github.com/users/samelhusseini/received_events","type":"User","site_admin":false},"assignees":[{"login":"samelhusseini","id":16690124,"node_id":"MDQ6VXNlcjE2NjkwMTI0","avatar_url":"https://avatars3.githubusercontent.com/u/16690124?v=4","gravatar_id":"","url":"https://api.github.com/users/samelhusseini","html_url":"https://github.com/samelhusseini","followers_url":"https://api.github.com/users/samelhusseini/followers","following_url":"https://api.github.com/users/samelhusseini/following{/other_user}","gists_url":"https://api.github.com/users/samelhusseini/gists{/gist_id}","starred_url":"https://api.github.com/users/samelhusseini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samelhusseini/subscriptions","organizations_url":"https://api.github.com/users/samelhusseini/orgs","repos_url":"https://api.github.com/users/samelhusseini/repos","events_url":"https://api.github.com/users/samelhusseini/events{/privacy}","received_events_url":"https://api.github.com/users/samelhusseini/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-11-16T21:00:16Z","updated_at":"2018-11-16T21:00:16Z","closed_at":null,"author_association":"MEMBER","body":"**Describe the bug**\r\nThe function name placeholder is doSomething, whereas I think it should be the initial value instead.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. In blocks, click Functions, then Make a Function\r\n2. Notice how the value in the input is doSomething, but if you try to type it replaces what's there, and if you click enter it does nothing (as nothing was entered). \r\n\r\n**Expected behavior**\r\nTwo issues here: \r\n- I would expect the placeholder to be the initial value in the case of adding a function\r\n- I also would expect it to disable the Ok button if there's no value in the input\r\n\r\n**Screenshots**\r\nPlaceholder:\r\n![screen shot 2018-11-16 at 12 57 01 pm](https://user-images.githubusercontent.com/16690124/48646942-3c90e200-e99f-11e8-8cd8-eaa854d6c660.png)\r\n\r\nTyping 'doSomething' into that field:\r\n![screen shot 2018-11-16 at 12 57 05 pm](https://user-images.githubusercontent.com/16690124/48646950-40246900-e99f-11e8-81bc-9af62098555b.png)\r\n\r\nTested on Safari on Mac.\r\n"}}
{"actor":{"display_login":"samelhusseini"}}