ITADN

TypeError: Cannot read properties of undefined (reading 'sortedItems')

#617ClosedLuisMacedoKantar 创建于 2025-04-17
Hi 👋 We're seeing the following error occur when using ember-sortable v5.2.3: **Uncaught TypeError: Cannot read properties of undefined (reading 'sortedItems') at p._prepareDrag** This appears to be coming from a private method in the sortable-item modifier during drag initialization. The error suggests that the group context is undefined at the time _prepareDrag runs. Observations: The error is intermittent and only shows up in real usage — we don’t see it during local development or testing. We are not directly using ember-sortable in our own component logic, but we believe some internal or dynamic rendering might be causing a timing/race condition. Ember-data: 4.13.0-alpha.6 Ember: 5.8 ember-sortable: 5.2.3 We also noticed that version 5.3.0 was released — happy to try upgrading, but just wanted to report this here in case it helps track down a possible initialization timing issue inside the modifier lifecycle. Thanks for maintaining this addon — it’s very appreciated!
关闭于 2025-04-17 0 条评论