Skip to content

Commit 7ff9b28

Browse files
SlimFosterscottgonzalez
authored andcommitted
Resizable: Match on exact node name
Fixes #10748 Closes gh-1417 (cherry picked from commit faefab8)
1 parent f1345e3 commit 7ff9b28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/resizable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ $.widget("ui.resizable", $.ui.mouse, {
9999
});
100100

101101
// Wrap the element if it cannot hold child nodes
102-
if (this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)) {
102+
if (this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)) {
103103

104104
this.element.wrap(
105105
$("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({
@@ -200,7 +200,7 @@ $.widget("ui.resizable", $.ui.mouse, {
200200
this.handles[i] = this.element.children( this.handles[ i ] ).first().show();
201201
}
202202

203-
if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/textarea|input|select|button/i)) {
203+
if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)) {
204204

205205
axis = $(this.handles[i], this.element);
206206

0 commit comments

Comments
 (0)