diff --git a/assets/javascripts/discourse/components/wizard-links.js.es6 b/assets/javascripts/discourse/components/wizard-links.js.es6 index 16573abb..0683ce4a 100644 --- a/assets/javascripts/discourse/components/wizard-links.js.es6 +++ b/assets/javascripts/discourse/components/wizard-links.js.es6 @@ -13,13 +13,13 @@ export default Component.extend({ anyLinks: notEmpty('links'), @on('didInsertElement') - @observes('links.@each') - didInsertElement() { + @observes('links.[]') + setupSortable() { scheduleOnce('afterRender', () => (this.applySortable())); }, applySortable() { - $(this.element).find("ul") + $(this.element).find(".link-list") .sortable({ tolerance: 'pointer' }) .on('sortupdate', (e, ui) => { this.updateItemOrder(ui.item.data('id'), ui.item.index());