foundation-apps icon indicating copy to clipboard operation
foundation-apps copied to clipboard

Toggle other Actionsheets / open only one Action at a time

Open HerrHase opened this issue 10 years ago • 0 comments

I use multiple Actionsheets that are open and close with buttons. But i need only open one Actionsheet at a time. So i open one, i open a second, and the other has to close. But this didn't work. I search the code and added "foundationApi.closeActiveElements();" on line 95 in foundation-apps/js/angular/components/actionsheet/actionsheet.js

function toggle() {
      content.toggle();
      container.toggle();
      foundationApi.closeActiveElements();

      content.$apply();
      container.$apply();
}

And now if i open another Actionsheet, a already open Actionsheet closed. Maybe a option for the zf-action-sheet-tag

HerrHase avatar Nov 27 '15 13:11 HerrHase