Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

$mdDialog option skipHide #178

Open
norbornen opened this issue Feb 6, 2017 · 6 comments
Open

$mdDialog option skipHide #178

norbornen opened this issue Feb 6, 2017 · 6 comments

Comments

@norbornen
Copy link

Hello!

You need replace option 'skipHide' to option 'multiple' in $mdDialog constructor.

@ghost
Copy link

ghost commented Feb 14, 2017

I updated my version to use 'multiple' instead of 'skipHide' and it's not working.. using angular material 1.1.2...please check the attached codepen...we are in production now and it is causing trouble to lot of users please tell the fix to it

http://codepen.io/Prajwal_Jagadish/pen/ygZodj

@LoganDupont
Copy link

This should solve the problem for now

var oldShow = $mdDialog.show;
  $mdDialog.show = function (options) {
    if (options.hasOwnProperty("skipHide")) {
      options.multiple = options.skipHide;
    }
   return oldShow(options);
};

@ghost
Copy link

ghost commented Feb 14, 2017

@LoganDupont can you show it in code pen attached
http://codepen.io/Prajwal_Jagadish/pen/ygZodj

Thank you in advance

@LoganDupont
Copy link

@Prajwal8 Here is the codepen

@ghost
Copy link

ghost commented Feb 14, 2017

Thanks a lot @LoganDupont. saved my day.

@dpoetzsch
Copy link

If you still need this you can use my fork for now https://github.com/dpoetzsch/md-pickers. It has merged pull request #189 which should fix this issue. For details on the fork see #192.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants