Skip to content

Commit 8283b78

Browse files
committed
Add check for modal to _setOption method
1 parent 4810065 commit 8283b78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/widgets/dialog.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,10 @@ $.widget( "ui.dialog", {
763763
if ( key === "title" ) {
764764
this._title( this.uiDialogTitlebar.find( ".ui-dialog-title" ) );
765765
}
766+
767+
if ( key === "modal" ) {
768+
uiDialog.attr( "aria-modal", value ? "true" : null );
769+
}
766770
},
767771

768772
_size: function() {

0 commit comments

Comments
 (0)