Skip to content
Permalink
Browse files
Resizable: Match on exact node name
Fixes #10748
Closes gh-1417
(cherry picked from commit faefab8)
  • Loading branch information
SlimFoster authored and scottgonzalez committed Feb 9, 2015
1 parent f1345e3 commit 7ff9b28de30360e1688c3c1bcf0444def56382ab
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/resizable.js
@@ -99,7 +99,7 @@ $.widget("ui.resizable", $.ui.mouse, {
});

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

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

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

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

0 comments on commit 7ff9b28

Please sign in to comment.