Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 11687b5

Browse files
Dialog: Append close button to first found header to prevent a close button being added to popup on same page as well. Fixes #5382.
1 parent 29eaf47 commit 11687b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $.widget( "mobile.dialog", $.mobile.widget, {
3131
$el
3232
.wrapInner( dialogWrap )
3333
.children()
34-
.find( ":jqmData(role='header')" )
34+
.find( ":jqmData(role='header')" ).first()
3535
.prepend( headerCloseButton )
3636
.end()
3737
.children( ':first-child')

0 commit comments

Comments
 (0)