Skip to main content

Search and Top Navigation

#9580 closed feature (notabug)

Opened September 30, 2013 12:42PM UTC

Closed September 30, 2013 01:39PM UTC

resizable.resize event should support stopping propagation

Reported by: javadoug Owned by: javadoug
Priority: minor Milestone: none
Component: ui.resizable Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:
Description

If the resize event is going to bubble to window then we should be able to stop it using the normal propagation mechanism. Having to hack a solution to get normal application behavior is not acceptable. Pls consider improving resizable to allow standard event behavior.

Expected behavior, calling stopPropagation method on the resize event of a resizable element should stop propagation of the event and prevent window.resize event from firing.

Current behavior, calling stopPropagation has no effect on the resizable.resize event.

Attachments (0)
Change History (4)

Changed September 30, 2013 12:46PM UTC by scottgonzalez comment:1

owner: → javadoug
status: newpending

It's just standard jQuery event, so event.stopPropagation() should work just fine. Note that if you're using the callback, and not an event handler, that it's too late to stop propagation. Please either provide a reduced test case showing that this is a broken, or confirm that you weren't actually using an event handler.

Changed September 30, 2013 01:10PM UTC by javadoug comment:2

status: pendingnew

I am specifically referring to the callback, which is how most of the other callbacks in jquery work. It seems that the response from the callback should be trapped and respected before triggering the resize event. When I use other event callbacks in jquery libs they usually respect the event object's propagation state.

Changed September 30, 2013 01:12PM UTC by javadoug comment:3

_comment0: Perhaps, some confusion could be had by renaming the callback. If the callback is not the event then rename it to make it distinct from the resize event.1380546757129219

Perhaps, some confusion could be reduced by renaming the callback. If the callback is not the event then rename it to make it distinct from the resize event.

Changed September 30, 2013 01:39PM UTC by scottgonzalez comment:4

resolution: → notabug
status: newclosed

It is very much not distinct from the event. You can think of it as the last point of propagation, but it will be called even if propagation is stopped.