mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
parent
c66842b45e
commit
faefab842b
@ -104,7 +104,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({
|
||||
@ -205,7 +205,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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user