Incompatibility of ‘Vault 5’ with ‘Suite 9’

Vault 5.X does not work properly in conjunction with Suite 9.X.

It throws an error when trying to move an item because it uses the Suite’s DragManager, which cannot find a specific property.

Below is the error message I receive and a link to the DHX snippet where it also does not work in this combination.

Uncaught runtime errors:

Cannot read properties of undefined (reading ‘which’)
TypeError: Cannot read properties of undefined (reading ‘which’)
at DragManager.onMouseDown (http://example.com/assets/dhtmlx/suite.js:26235:19)
at List._dragStart (http://example.com/assets/dhtmlx/vault/vault.js:10221:37)
at HTMLDivElement.onmousedown (http://example.com/assets/dhtmlx/vault/vault.js:10083:23)

DHX Snippet:
(You have to select JavaScript Suite 9.X and Vault 5.X)

https://snippet.dhtmlx.com/6dvbdt6s?text=vault

An error message also appears there if you try to move an item.

I found out that it works if the Vault Assets are loaded before the Suite Assets!

Apparently the Vault js/css has overwritten something in the Suite Assets, when I did it vice versa.

Hello @Czeslaw,

Thank you for notifying the issue and provided workaround, I already sent it to the dev team, and they will try to fix it ASAP.

Kind regards,

1 Like