When I’m open the page and click to open on action sheet then I go back to the previous page then click the same page that have the same action sheet and when I click to open same action sheet it open more than once.
here my code.
please help
var uploadAction;
$$(document).on('page:init', '.page[data-name="post"]', function (e, page) {
$$(document).on('click', '.upload-img-ac', function () {
uploadAction.open();
});
uploadAction = app.actions.create({
//.....some code about action
});
});