Sortable: Floating detection only occurs during initialization
|Reported by:||jamesh||Owned by:|
Tested with Firefox 4.0.1 on Windows 7. jQuery UI 1.8.13
- On an empty div.
- call .tabs()
- call .sortable()
- add tabs with .tabs('add', .. )
- Sorting is then partially broken.
this.floating is only determined during _create() (on line 53 in jquery.ui.sortable.js), so when floating items are added later on this.floating is incorrect.
I'm not sure whether this is indeed a bug, or just misuse, as I have fixed my problem by moving the .sortable() after .tabs('add').
Perhaps advising the user of this potential problem in the tabs documentation.
Change History (16)
comment:5 Changed 4 years ago by scottgonzalez
- Summary changed from Sortable/tabs issue when calling .sortable() before dynamically adding tabs to Sortable: Floating detection only occurs during initialization
comment:13 Changed 2 years ago by TJ VanToll
- Resolution set to fixed
- Status changed from open to closed