aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAdam Foster <slimfoster@gmail.com>2015-01-09 16:55:19 -0500
committerScott González <scott.gonzalez@gmail.com>2015-02-09 11:58:13 -0500
commit7ff9b28de30360e1688c3c1bcf0444def56382ab (patch)
treeebd10f97db8022a4a685250d54e532ef658d4359 /ui
parentf1345e3900e4ac7e5c496b82c04731ce7535bdf7 (diff)
downloadjquery-ui-7ff9b28de30360e1688c3c1bcf0444def56382ab.tar.gz
jquery-ui-7ff9b28de30360e1688c3c1bcf0444def56382ab.zip
Resizable: Match on exact node name
Fixes #10748 Closes gh-1417 (cherry picked from commit faefab842bc79f212ccee227b7a37c7630b1573c)
Diffstat (limited to 'ui')
-rw-r--r--ui/resizable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/resizable.js b/ui/resizable.js
index 394e484b3..8ec986f4f 100644
--- a/ui/resizable.js
+++ b/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);