{"action":"closed","issue":{"url":"https://api.github.com/repos/BorisMoore/jsviews/issues/320","labels_url":"https://api.github.com/repos/BorisMoore/jsviews/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/BorisMoore/jsviews/issues/320/comments","events_url":"https://api.github.com/repos/BorisMoore/jsviews/issues/320/events","html_url":"https://github.com/BorisMoore/jsviews/issues/320","id":108466770,"number":320,"title":"Delay in updating of property in datalinked checkbox","user":{"login":"markibanez","id":7534847,"avatar_url":"https://avatars.githubusercontent.com/u/7534847?v=3","gravatar_id":"","url":"https://api.github.com/users/markibanez","html_url":"https://github.com/markibanez","followers_url":"https://api.github.com/users/markibanez/followers","following_url":"https://api.github.com/users/markibanez/following{/other_user}","gists_url":"https://api.github.com/users/markibanez/gists{/gist_id}","starred_url":"https://api.github.com/users/markibanez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markibanez/subscriptions","organizations_url":"https://api.github.com/users/markibanez/orgs","repos_url":"https://api.github.com/users/markibanez/repos","events_url":"https://api.github.com/users/markibanez/events{/privacy}","received_events_url":"https://api.github.com/users/markibanez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-26T13:59:26Z","updated_at":"2015-09-28T08:17:58Z","closed_at":"2015-09-28T08:17:58Z","body":"Hi @BorisMoore,\r\n\r\nI had a weird issue using a datalinked checkbox. Here's my HTML \r\n\r\n`<label class=\"user-access\"><input type=\"checkbox\" \r\n                    data-link=\"{:ManageForms trigger=true:} disabled{:IsOwner} onchange{:'UpdateTenantUserAccess(' + TenantID + ',' + UserID + ')'}\" /> Manage Forms</label>`\r\n\r\nSo what happened was the UpdateTenantUserAccess function was picking up the old value of the property ManageForms bound to the checkbox. I had to enclose my code in a setTimeout to allow the datalink to \"catch up\" and get the proper value. \r\n\r\nWhile enclosing code in a setTimeout isn't a hassle, I just feels hacky and inelegant. Am I doing something wrong here? Is there a way to fix this without using setTimeout?"}}