You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
H5 Gridstack.js completely useless in safari #1540
TypeError: $('.newWidget').draggable is not a function. (In '$('.newWidget').draggable({
revert: 'invalid',
scroll: false,
appendTo: 'body',
helper: 'clone'
})', '$('.newWidget').draggable' is undefined)
```
Activity
adumesny commentedon Dec 20, 2020
will take me a while to try this on a mac as I'm on windows...
[-]Gridstack.js completely useless in safari[/-][+]H5 Gridstack.js completely useless in safari[/+]kevinlandsberg commentedon Dec 20, 2020
Yeah,
but it seems to get more importance to support Safari cause Apple is selling a lot of computers atm 👍🏿
kevinlandsberg commentedon Dec 20, 2020
You can try out Browserstack (https://www.browserstack.com/)
shmolf commentedon Dec 21, 2020
JavaScript Console Error
adumesny commentedon Dec 21, 2020
@shmolf sounds like you are mixing html5 and jquery-ui there... I don't think that pertains to the site demos but I have not looked on safari yet.
shmolf commentedon Dec 21, 2020
Ack! You're probably right. I'll try changing my assets, and let you know the result.
shmolf commentedon Dec 21, 2020
I was using the following CDN URL
https://cdn.jsdelivr.net/npm/gridstack@3.1.2/dist/gridstack-h5.js
This was referenced by the JS Fiddle example.
Nothing else is loaded, other than CSS.
shmolf commentedon Dec 21, 2020
We may independently use Jquery UI, but not for Gridstack.
Does Gridstack check if Jquery UI is globally available, then references if so?
adumesny commentedon Dec 21, 2020
please file a separate bug with reproduceable example. And no we don't reference JQ ui if it's available...onlyif our JQ plugin is used.
shshen commentedon Dec 27, 2020
I have same issue in safari, when i drag a grid element. I'm using latest release build:
[Error] ReferenceError: Can't find variable: DragEvent
initEvent (gridstack-h5.js:2:58075)
_dragStart (gridstack-h5.js:2:41983)
_dragStart
adumesny commentedon Dec 28, 2020
for now you will need to use the jquery version
H5 safari fix
adumesny commentedon Jan 1, 2021
I spent a lot of time over the break and think I have a fix for Safari (and also better behavior for Chrome). Help or Donations would be appreciated..
kevinlandsberg commentedon Jan 2, 2021
I will definetly donate as soon as it will work on Safari and there will be the engine fix for swapping grid items instead of pushing them down...#149
safari fix for drag&drop
H5 safari drag fix
H5 safari drag fix
adumesny commentedon Jan 2, 2021
fixed in upcoming 3.1.3