Closed sircovsw closed 6 years ago
I confirm the error too,
This is a bug caused by the incompatibility between jquery ui 1.11.* and Jquery 3.x.x 3181
Yii2 should update the jui assets dependencies.
Hi people,
same error as well. Let me ask a stupid question, who is responsable to update jquery to version 3?
thanks in advance!
If there is an incompatibility between jQuery and jQuery UI I would expect this to be reflected in version constraints of the jQueryUI bower package...
Any news about a fix?
Not yet.
This is the solution, need to be updated JQuery UI 1.11.4 to 1.12.1
https://stackoverflow.com/questions/37914869/jquery-ui-error-f-getclientrects-is-not-a-function
Also reported here: https://github.com/vanderlee/colorpicker/issues/132
Currently Yii2 (as of 2.0.13) vendor/bower/jquery-ui/bower.json
loads 1.11.4
, should be 1.12.1+.
But probably all Yii2 JUI-* components should be tested ... (:-o)
Possible quickfix would be including migration script (https://code.jquery.com/jquery-migrate-3.0.0.min.js). See https://github.com/jquery/jquery/issues/3157.
Migrate script does seem to fix the problem for now
Same problem here when trying to add a Parent Menu with in the Yii2-admin menu module: When I type some parent menú this is the error:
lubosdz, thx
P.S. Faster fix that please.
Pushed a commit to master. That should fix it.
don't how it works but migration script fix the problem
migration script? what does this means?
don't how it works but migration script fix the problem
@DavidAmorocho no idea. The issue if fixed in latest version.
What steps will reproduce the problem?
$("#qqq").dialog("open")
What's expected?
opens a dialog
What do you get instead?
f.getClientRects is not a function
Additional info