{"action":"opened","issue":{"url":"https://api.github.com/repos/mostafatalebi/mtform/issues/5","repository_url":"https://api.github.com/repos/mostafatalebi/mtform","labels_url":"https://api.github.com/repos/mostafatalebi/mtform/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/mostafatalebi/mtform/issues/5/comments","events_url":"https://api.github.com/repos/mostafatalebi/mtform/issues/5/events","html_url":"https://github.com/mostafatalebi/mtform/issues/5","id":151931937,"number":5,"title":"Cannot create <select> component, error: Uncaught TypeError: Cannot read property '0' of undefined","user":{"login":"mostafatalebi","id":5445775,"avatar_url":"https://avatars.githubusercontent.com/u/5445775?v=3","gravatar_id":"","url":"https://api.github.com/users/mostafatalebi","html_url":"https://github.com/mostafatalebi","followers_url":"https://api.github.com/users/mostafatalebi/followers","following_url":"https://api.github.com/users/mostafatalebi/following{/other_user}","gists_url":"https://api.github.com/users/mostafatalebi/gists{/gist_id}","starred_url":"https://api.github.com/users/mostafatalebi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mostafatalebi/subscriptions","organizations_url":"https://api.github.com/users/mostafatalebi/orgs","repos_url":"https://api.github.com/users/mostafatalebi/repos","events_url":"https://api.github.com/users/mostafatalebi/events{/privacy}","received_events_url":"https://api.github.com/users/mostafatalebi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mostafatalebi/mtform/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-29T17:50:12Z","updated_at":"2016-04-29T17:50:12Z","closed_at":null,"body":"When the following code is used to create a `<select> `component, an error is thrown:\r\n\r\n```\r\n.Select(\"favorite_position\", { labels : ['Backend Programmer', 'Frontend Programer', 'Sales Expert'],\r\n            values : ['bp', 'fp', 'se'] })\r\n```\r\n\r\nThe error is:\r\nUncaught TypeError: Cannot read property '0' of undefined\r\n\r\nIn the file:\r\nmtform.dom.js\r\nLine:\r\n514"}}