datetime destroy error when clear then add

datetime destroy error when clear then add

denrenchendenrenchen Posts: 1Questions: 1Answers: 0

$(document).on('change','#xxx',function(){
editor.clear( 'begin_time' );
editor.add({ label: "begin_time", name : "begin_time", type: "datetime",format: 'YYYY-MM-DD HH:mm:ss'});
}
error:
Uncaught TypeError: this[(x2P + p4S.C5P)][d2w] is not a function
V1.5.4

This discussion has been closed.