Ticket #8344 (open bug)

Opened 3 years ago

Last modified 12 months ago

Resizable: Destroy function removing ui-resizable-handle from inner containers

Reported by: gizmovation Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.resizable Version: 1.8.20
Keywords: haspatch Cc:
Blocking: Blocked by:

Description

When you have an outter div that is resizable that contains an inner div that is also resizable and attept to call $('#outter').resizable('destroy'), the ui-resizable-handle is removed from the inner div as well.

The root of the problem is in the destroy function in jquery.ui.resizable.js on line 198 (as of JQuery UI v1.8.20).

Notice that it is calling:

.find('.ui-resizable-handle').remove();

This should be changed instead to:

.children('.ui-resizable-handle').remove();

This is posted in reference to the stack overflow question here:  http://stackoverflow.com/questions/10707661/remove-specific-resize-handler-jquery

Change History

comment:1 Changed 2 years ago by scott.gonzalez

  • Milestone changed from 1.9.0 to 2.0.0

comment:2 Changed 2 years ago by tj.vantoll

  • Keywords haspatch added
  • Status changed from new to open

comment:3 Changed 12 months ago by dekajp

Note: See TracTickets for help on using tickets.