javascript - jQuery resizable handle inside child -


i receiving error:

uncaught typeerror: cannot read property 'ownerdocument' of undefined

when try place resizable handle inside child of container trying resize.

code

as can see, inside controls div, handle meant resize .ui-widget container, instead throwing above error.

if move handle outside of controls div however, works fine.

why happening? there workaround?

current jquery code:

$("div.ui-widget").resizable({     handles: {         'se': 'div.ui-resizable-se'     },     start: function(e, ui) {         $(ui.helper).addclass("dragging");     },     stop: function(e, ui) {         $(ui.helper).removeclass("dragging");         oldwidget.savestate($(ui.helper), 'resize');     } }); 

found solution myself.

it seems jqueryui version causing it! using 1.11.x , after reverting 1.10.4 problem gone , functions correctly!

any reasons why appreciated.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -