Skip to content

Commit 38af07e

Browse files
carsonmcdonaldscottgonzalez
authored andcommitted
Resizable: Skip autohide hover action when resizable is disabled. Fix #6948 - Resizable autoHide Doesn't Work With Resizable's disable
(cherry picked from commit 0e2bc5e)
1 parent 7eda94a commit 38af07e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/jquery.ui.resizable.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,12 @@ $.widget("ui.resizable", $.ui.mouse, {
176176
$(this.element)
177177
.addClass("ui-resizable-autohide")
178178
.hover(function() {
179+
if (o.disabled) return;
179180
$(this).removeClass("ui-resizable-autohide");
180181
self._handles.show();
181182
},
182183
function(){
184+
if (o.disabled) return;
183185
if (!self.resizing) {
184186
$(this).addClass("ui-resizable-autohide");
185187
self._handles.hide();

0 commit comments

Comments
 (0)