Value gets removed after set_value

Not sure if this is a bug in the framework, pls see video

ERPNext: v10.1.33 (master)
Frappe Framework: v10.1.31 (master)

On first click on the checkbox, the value after set_value gets removed.

Which doctype it is?

it’s a custom doctype

Can you share your code?

Here’s my code:

 active_place: function(frm){
        if (frm.doc.active_place){
            cur_frm.set_value("from_phone_number","9177008340");
    }
    }

Apologies for late reply,

I just tried it, it works.

AwesomeScreenshot-2018-08-13T13-36-33-443Z