Ionic modal select multiple button "ok" appears

I’m trying to figure out how the ionic modal select is working. In my case i want to make a modal select with multiple checkboxes and the user have to click “okay” afterwords to hide the modal. When i set the modal to multiple=“true”, it gives me the option to click on multiple items, which is great. But the problem comes when i have to close the modal again. A “magic” ok button appears but doesn’t have any function. How do i make this modal to take the values of all the checkboxes i click and hide?

LINK: http://market.ionic.io/plugins/ionic-modal-select
Codepen with standard options: http://codepen.io/bianchimro/pen/epYYQO?editors=1010