{"action":"created","issue":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/4816","repository_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI","labels_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/4816/labels{/name}","comments_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/4816/comments","events_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/4816/events","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/4816","id":193976551,"number":4816,"title":"Dynamic Dropdown with remote content","user":{"login":"ShukriChiu","id":5136543,"avatar_url":"https://avatars.githubusercontent.com/u/5136543?v=3","gravatar_id":"","url":"https://api.github.com/users/ShukriChiu","html_url":"https://github.com/ShukriChiu","followers_url":"https://api.github.com/users/ShukriChiu/followers","following_url":"https://api.github.com/users/ShukriChiu/following{/other_user}","gists_url":"https://api.github.com/users/ShukriChiu/gists{/gist_id}","starred_url":"https://api.github.com/users/ShukriChiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShukriChiu/subscriptions","organizations_url":"https://api.github.com/users/ShukriChiu/orgs","repos_url":"https://api.github.com/users/ShukriChiu/repos","events_url":"https://api.github.com/users/ShukriChiu/events{/privacy}","received_events_url":"https://api.github.com/users/ShukriChiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-07T07:26:43Z","updated_at":"2016-12-10T16:43:41Z","closed_at":null,"body":"Hi, I wrote my code like that\r\n```javascript\r\n      $('.dropdown#brands')\r\n        .dropdown({\r\n          apiSettings: {\r\n            url: 'https://sneakerfans.herokuapp.com/api/v1/allbrands',\r\n          },\r\n          fields: {\r\n            remoteValues: 'brands',\r\n            name: 'brand_name',\r\n            value: 'id'\r\n          },\r\n          allowReselection: 'ture',\r\n          placeholder: 'select brands',\r\n          direction: 'downward',\r\n          onChange: (value, text, $choice) => {\r\n            regvue.brand_id = value\r\n            if (!regvue.tech) {\r\n              regvue.tech = true\r\n            }\r\n            $('#techs')\r\n              .dropdown({\r\n                placeholder: 'select techs',\r\n                fields: {\r\n                  remoteValues: 'techs',\r\n                  name: \"tech_name\",\r\n                  value: \"id\"\r\n                },\r\n                apiSettings: {\r\n                  url: 'https://sneakerfans.herokuapp.com/api/v1/gettechs',\r\n                  method: 'post',\r\n                  beforeSend: (settings) => {\r\n                    console.log(regvue.brand_id)\r\n                    $('#techs').dropdown('refresh')\r\n                    settings.data = {\r\n                      brand_id: regvue.brand_id,\r\n                    }\r\n                    return settings\r\n                  }\r\n                }\r\n              });\r\n          }\r\n        });\r\n```\r\n\r\nThere should be two dropdowns, first use api to get content from server, and when first dropdown change its value, the second dropdown use api and the value from first dropdown to get a different options. \r\n\r\nHowever, the second dropdown content doesn't change when I change first dropdown value.  "},"comment":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/comments/266221313","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/4816#issuecomment-266221313","issue_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/4816","id":266221313,"user":{"login":"iteles","id":4185328,"avatar_url":"https://avatars.githubusercontent.com/u/4185328?v=3","gravatar_id":"","url":"https://api.github.com/users/iteles","html_url":"https://github.com/iteles","followers_url":"https://api.github.com/users/iteles/followers","following_url":"https://api.github.com/users/iteles/following{/other_user}","gists_url":"https://api.github.com/users/iteles/gists{/gist_id}","starred_url":"https://api.github.com/users/iteles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iteles/subscriptions","organizations_url":"https://api.github.com/users/iteles/orgs","repos_url":"https://api.github.com/users/iteles/repos","events_url":"https://api.github.com/users/iteles/events{/privacy}","received_events_url":"https://api.github.com/users/iteles/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T16:43:41Z","updated_at":"2016-12-10T16:43:41Z","body":"@ShukriChiu Does that mean that you are happy to close this issue? :blush:"}}
{"actor":{"display_login":"iteles"}}