Closed denkerny closed 3 years ago
Hi @kernyden
setDisabledState
is an Angular method called when instantiating a FormControl
with the disabled
property or when calling control.disable()
/control.enable()
. This is possible because the component uses the NG_VALUE_ACCESSOR
provider. That means you don't have to set [disabled]=true
on a reactive form directive and instead you can use these the aforementioned methods.
Let me know if this helps
@jscasca hm, ok. But I do not see people are using disabled
property, cause of the reserved keywords.. And yes, setDisabledState
from the editor instance and disable()
are working with simple demo.
So, how are you using the disabled mode on the wrapper and does the current behaviour breaks your code in any way?
To avoid scenario angular team wrote:
it'd be grateful to change:
to smth like:
And seems like
setDisabledState
not working for me.