diff --git a/js/cmb2.js b/js/cmb2.js index c1a72949d..53be582d8 100644 --- a/js/cmb2.js +++ b/js/cmb2.js @@ -1025,6 +1025,9 @@ window.CMB2 = window.CMB2 || {}; $repeatables.sortable({ items : '.cmb-repeat-row', cursor: 'move', + // The default "cancel" attributes are: "input,textarea,button,select,option". + // We are appending .CodeMirror. + // See https://api.jqueryui.com/sortable/#option-cancel cancel: 'input,textarea,button,select,option,.CodeMirror' }); }