{"action":"closed","issue":{"url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/200","repository_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-materialize-bridge","labels_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/200/comments","events_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/200/events","html_url":"https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/200","id":163133317,"number":200,"title":"Dropdown: document.ready vs. attached","user":{"login":"JoschaMetze","id":3667953,"avatar_url":"https://avatars.githubusercontent.com/u/3667953?v=3","gravatar_id":"","url":"https://api.github.com/users/JoschaMetze","html_url":"https://github.com/JoschaMetze","followers_url":"https://api.github.com/users/JoschaMetze/followers","following_url":"https://api.github.com/users/JoschaMetze/following{/other_user}","gists_url":"https://api.github.com/users/JoschaMetze/gists{/gist_id}","starred_url":"https://api.github.com/users/JoschaMetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoschaMetze/subscriptions","organizations_url":"https://api.github.com/users/JoschaMetze/orgs","repos_url":"https://api.github.com/users/JoschaMetze/repos","events_url":"https://api.github.com/users/JoschaMetze/events{/privacy}","received_events_url":"https://api.github.com/users/JoschaMetze/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-06-30T10:31:23Z","updated_at":"2016-08-10T11:07:21Z","closed_at":"2016-08-10T11:07:21Z","body":"Hi,\r\n\r\nif I include a md-dropdown button in my view which is visible from the beginning (no show.bind etc.) materialize is initializing the drop-down element twice. Once with the bridge code (e.g. constrain-width = false) and once at document.ready-event with the default code (empty options). This may be linked to: https://github.com/Dogfalo/materialize/blob/master/js/dropdown.js#L40\r\n\r\nI'm not sure if it is possible to delay the initialization after the document.ready event has occured or to apply the options as html data objects so the materialize code can use the options given there.\r\n\r\nKind regards\r\nJoscha"}}
{"actor":{"display_login":"JoschaMetze"}}