Skip to content

Commit 29bfb86

Browse files
committed
All: Define defaultElement for non-div widgets.
1 parent 8d1713d commit 29bfb86

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

ui/jquery.ui.autocomplete.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
(function( $, undefined ) {
1717

1818
$.widget( "ui.autocomplete", {
19+
defaultElement: "<input>",
1920
options: {
2021
appendTo: "body",
2122
delay: 300,

ui/jquery.ui.button.js

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ var lastActive,
4343
};
4444

4545
$.widget( "ui.button", {
46+
defaultElement: "<button>",
4647
options: {
4748
disabled: null,
4849
text: true,

ui/jquery.ui.menu.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
var idIncrement = 0;
1717

1818
$.widget("ui.menu", {
19+
defaultElement: "<ul>",
1920
_create: function() {
2021
var self = this;
2122
this.menuId = this.element.attr( "id" ) || "ui-menu-" + idIncrement++;

ui/jquery.ui.spinner.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
(function($) {
1515

1616
$.widget('ui.spinner', {
17+
defaultElement: "<input>",
1718
options: {
1819
incremental: true,
1920
max: null,

0 commit comments

Comments
 (0)