bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Modal 'windowClass' broken in 0.11.0

Open gregtzar opened this issue 12 years ago • 7 comments

After upgrading from 0.8.0 to 0.11.0, the windowClass string that I pass to the $modal.open() method is no longer added as a window class, but is instead added as the value of a new window-class attribute. This is a regression from previous functionality, and it also goes against what the documentation says about how it should work, eg: "windowClass - additional CSS class(es) to be added to a modal window template"

gregtzar avatar Sep 13 '14 05:09 gregtzar

Not sure I understand. Could you please provide a minimal reproduce scenario: https://github.com/angular-ui/bootstrap/blob/master/CONTRIBUTING.md#you-think-youve-found-a-bug

pkozlowski-opensource avatar Oct 21 '14 10:10 pkozlowski-opensource

For some reason I am unable to reproduce this anymore: http://plnkr.co/edit/5K6frPTfoezlairJCoV8?p=preview. It seemed to be a valid issue at the time, for example various others reported the exact same issue about a breaking change between 0.10.0 and 0.11.0 here: https://github.com/angular-ui/bootstrap/issues/2319. Not sure what happened but I guess we can close the book on it.

gregtzar avatar Oct 22 '14 21:10 gregtzar

I am also seeing the same issue using 0.11.0 version. Adding windowClass parameter is simply adding a custom attribute with the value as the class name you want to add. I had to use custom attribute selector in css to access that to make it work. Just pointing it out as the documentation doesnt say so

jci-yarora avatar Mar 12 '15 07:03 jci-yarora

I am using 0.13.0 version and I also faced this issue. However after comparing my templates with this version, it seemed I had not updated the templates lately and it was because of the old templates which was causing the bug. After replacing window.html with the one in https://github.com/angular-ui/bootstrap/tree/master/template/modal, this issue was gone.

naveenraina avatar Jun 12 '15 09:06 naveenraina

@naveenraina Brilliant! That would actually explain why I was unable to reproduce it in plnkr, because the latest templates were contained in the import.

gregtzar avatar Jun 12 '15 19:06 gregtzar

@gtczap thanks, hope it helps others facing this issue as well.

naveenraina avatar Jun 13 '15 06:06 naveenraina

@naveenraina - Thanks man, that helps. I will be changing the template now.

jci-yarora avatar Jun 15 '15 05:06 jci-yarora