There is a bug in the width of the item in the form

Step 1 :online samples for DHTMLX Form.
Step 2 :Form. Disabled
Step 3:Replace JavaScript content with the following steps
Step 4 :Click on toggle
Step 5:Change preview width
Repeat 4-5

const form = new dhx.Form("form", {
  padding: 40,
  rows:[
    {
        "cols": [
            {
                "name": "aaa_k",
                "rows": [
                    {
                        "cols": [
                            {
                                "type": "input",
                                "name": "aaa",
                                "label": "aaa",
                                "labelWidth": 130,
                                "labelPosition": "left",
                                "show": true,
                                "placeholder": "aaaa",
                                "disabled": true,
                            },
                           {
                                "type": "toggle",
                                "name": "aaa_toggle",
                                "label": "",
                                "labelWidth": "80",
                                "labelPosition": "left",
                                "icon": "dxi dxi-checkbox-marked",
                                "offIcon": "dxi dxi-checkbox-blank-outline",
                                "width": 60,
                                "event": {},
                                "id": "u1742889803805"
                            }
                        ]
                    }
                ],
                "width": "50.00%"
            }
        ]
    },
   
]
});
form.events.on("change",function(name, new_value){
 
    if(name==='aaa_toggle'){
        if(new_value){
			form.getItem('aaa').enable()
			form.getItem('aaa').setProperties({placeholder:""});
		}else{
			form.getItem('aaa').disable()
			form.getItem('aaa').setProperties({placeholder:"aaaa"});
		}
    }
});

Hello.

Thank you for your report. The problem was confirmed. We’ll try to fix it in one of the future updates. I’ll inform you about any progress on this issue.

For now as a workaround please, try to define a desired width to your input control in its config:

{
   "type": "input",
   "name": "aaa",
   "label": "aaa",
   "labelWidth": 130,
   //add the desired width for your input control
   "width": 320,
   //
   "labelPosition": "left",
   "show": true,
   "placeholder": "aaaa",
   "disabled": true,
},

Here is the updated snippet:
https://snippet.dhtmlx.com/9lvri7hm