Skip to content

Commit 86dfdb8

Browse files
committed
added: option appendTo (where to append menu element), thx @payahnih, see fnagel#155
1 parent 90684f9 commit 86dfdb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ $.widget("ui.selectmenu", {
1717
eventPrefix: "selectmenu",
1818
options: {
1919
transferClasses: true,
20+
appendTo: "body",
2021
typeAhead: 1000,
2122
style: 'dropdown',
2223
positionOptions: {
@@ -203,7 +204,7 @@ $.widget("ui.selectmenu", {
203204
});
204205
this.listWrap = $( "<div />", {
205206
'class': self.widgetBaseClass + '-menu'
206-
}).append( this.list ).appendTo( 'body' );
207+
}).append( this.list ).appendTo( o.appendTo );
207208

208209
// transfer menu click to menu button
209210
this.list

0 commit comments

Comments
 (0)