Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 82160e1

Browse files
EladBezalelThomasBurleson
authored andcommitted
fix(dialog): fixed alert and confim md-transition-in class attachment
Alert and confirm dialogs had in their template class attribute that was binded to `dialog.css`, in case the css property was undefined it caused the `md-transition-in` class to be applied but than deleted. The solution was to change the usage to ng-class and let angular set the class. fixes #4862. closes #5006.
1 parent 460e3ab commit 82160e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/dialog/dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ function MdDialogProvider($$interimElementProvider) {
414414
function advancedDialogOptions($mdDialog, $mdTheming) {
415415
return {
416416
template: [
417-
'<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}" class="{{ dialog.css }}">',
417+
'<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css">',
418418
' <md-dialog-content role="document" tabIndex="-1">',
419419
' <h2 class="md-title">{{ dialog.title }}</h2>',
420420
' <div class="md-dialog-content-body" md-template="::dialog.mdContent"></div>',

0 commit comments

Comments
 (0)