gportela85/DateTimeField

Disable/Enable leaves DateTimeField still disabled

Closed this issue · 2 comments

I am just doing a simple disable then enable on the datetimefield bsaed on the value in a combo, e.g.

if(newValue === "custom") {
    field.nextSibling('datetimefield').enable();
 } else {
    field.nextSibling('datetimefield').disable();
});

However after being disabled, then re-enabled, the main body panel remains masked so you cannot select anything.

image

I will look at the code now and see if I can find a fix and post it, but thought I would mention this anyway.

Cmd 6.5.2.15
ExtJS 6.5.2.463

Ha! Seems you just have to enable the picker as well

field.nextSibling('datetimefield').getPicker().enable();

Hi, I know that you closed the ticket, but I tried disabling and re-enabling the field and I didn't have to manually re-enable the picker.
Check: https://fiddle.sencha.com/#fiddle/29h9&view/editor