{"action":"created","issue":{"url":"https://api.github.com/repos/zurb/foundation/issues/6482","labels_url":"https://api.github.com/repos/zurb/foundation/issues/6482/labels{/name}","comments_url":"https://api.github.com/repos/zurb/foundation/issues/6482/comments","events_url":"https://api.github.com/repos/zurb/foundation/issues/6482/events","html_url":"https://github.com/zurb/foundation/issues/6482","id":69527158,"number":6482,"title":"opened.fndtn.reveal calllback invoked twice","user":{"login":"ktei","id":2195250,"avatar_url":"https://avatars.githubusercontent.com/u/2195250?v=3","gravatar_id":"","url":"https://api.github.com/users/ktei","html_url":"https://github.com/ktei","followers_url":"https://api.github.com/users/ktei/followers","following_url":"https://api.github.com/users/ktei/following{/other_user}","gists_url":"https://api.github.com/users/ktei/gists{/gist_id}","starred_url":"https://api.github.com/users/ktei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktei/subscriptions","organizations_url":"https://api.github.com/users/ktei/orgs","repos_url":"https://api.github.com/users/ktei/repos","events_url":"https://api.github.com/users/ktei/events{/privacy}","received_events_url":"https://api.github.com/users/ktei/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-20T07:38:06Z","updated_at":"2015-04-24T00:10:04Z","closed_at":"2015-04-22T22:44:52Z","body":"Dear Foundation Team:\r\nI'm not sure this is expected or not, but after doing this:\r\n```\r\n$(document).on('opened.fndtn.reveal', '#' + this._id, this._onOpen)\r\n```\r\nwhere `this._id` points to a modal container, and `this._onOpen` is the callback function. However, I noticed that `this._onOpen` is invoked twice everytime the Modal is opened.\r\n\r\nAlso, if I change`el.trigger('opened').trigger('opened.fndtn.reveal')` to `el.trigger('opened.fndtn.reveal')` (in file `foundation.reveal.js`), this can resolve the issue but surely it's not the solution.\r\n\r\nCan you give me any hints? Did I do something improper?\r\n\r\nCheers"},"comment":{"url":"https://api.github.com/repos/zurb/foundation/issues/comments/95757135","html_url":"https://github.com/zurb/foundation/issues/6482#issuecomment-95757135","issue_url":"https://api.github.com/repos/zurb/foundation/issues/6482","id":95757135,"user":{"login":"ktei","id":2195250,"avatar_url":"https://avatars.githubusercontent.com/u/2195250?v=3","gravatar_id":"","url":"https://api.github.com/users/ktei","html_url":"https://github.com/ktei","followers_url":"https://api.github.com/users/ktei/followers","following_url":"https://api.github.com/users/ktei/following{/other_user}","gists_url":"https://api.github.com/users/ktei/gists{/gist_id}","starred_url":"https://api.github.com/users/ktei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktei/subscriptions","organizations_url":"https://api.github.com/users/ktei/orgs","repos_url":"https://api.github.com/users/ktei/repos","events_url":"https://api.github.com/users/ktei/events{/privacy}","received_events_url":"https://api.github.com/users/ktei/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T00:10:04Z","updated_at":"2015-04-24T00:10:04Z","body":"@rafibomb Thank you for your response. I also found another issue caused by this so I think it'd better to let your team know:\r\n\r\nSee `foundation.dropdown.js`, where you find `self.S(this).trigger('closed').trigger('closed.fndtn.dropdown', [dropdown]);`\r\n\r\nThis will trigger the `closed` event for sure however, it seems `closed` event will trigger a Reveal modal to be closed. Therefore, if you use dropdown button in a Reveal modal, whenever you close the collapse dropdown button, the Reveal modal gets closed too."}}