Hi. Did anybody find a way to do this with the new JavaScript API? For some reason I cannot find the element that is sortable. I tried all of the below methods. I tried other things too, but can’t get working
jQuery( document ).ready( function( $ ) {
if ( typeof acf !== 'undefined' ) {
const field = acf.getField('field_62fb6d4aa3dce');
// field.sortable('disable');
// field.$el.sortable('disable');
// field.$el[0].sortable('disable');
}
});
Any ideas? 🙂